001package fr.aumgn.bukkitutils.command.arg; 002 003public interface CommandArg<V> { 004 005 /** 006 * Returns the parsed value. This must not be called if 007 * the corresponding argument is optional or bad things 008 * may happen. 009 */ 010 V value(); 011 012 /** 013 * Returns the parsed value or the given default if the 014 * argument is omitted. 015 */ 016 V valueOr(V def); 017}