public abstract class AsbtractSenderArg<V> extends AbstractCommandArg<V> implements SenderArg<V>
string
Constructor and Description |
---|
AsbtractSenderArg(String string) |
Modifier and Type | Method and Description |
---|---|
protected abstract V |
defaultFor(CommandSender sender) |
protected abstract String |
missingPermOtherMessage(String permission) |
V |
valueOr(CommandSender sender)
Returns the parsed value or compute it from
the given CommandSender if argument is omitted.
|
V |
valueWithPermOr(String permission,
CommandSender sender)
Same as
SenderArg.valueOr(CommandSender)
but also check the given permission if
the argument is specified. |
valueOr
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
value
public AsbtractSenderArg(String string)
protected abstract V defaultFor(CommandSender sender)
protected abstract String missingPermOtherMessage(String permission)
public V valueOr(CommandSender sender)
SenderArg
public V valueWithPermOr(String permission, CommandSender sender)
SenderArg
SenderArg.valueOr(CommandSender)
but also check the given permission if
the argument is specified.valueWithPermOr
in interface SenderArg<V>
Copyright © 2012. All Rights Reserved.