public abstract class AbstractSenderMatchingArg<V> extends AsbtractSenderArg<V> implements MatchingArg<V>, SenderArg<V>, SenderMatchingArg<V>
string
Constructor and Description |
---|
AbstractSenderMatchingArg(String string) |
Modifier and Type | Method and Description |
---|---|
List<V> |
matchOr(CommandSender sender)
Returns all values which match the argument or
the given CommandSender if argument is omitted.
|
List<V> |
matchOr(List<V> def)
Returns all values which match the argument or
the given default list if the argument is omitted.
|
List<V> |
matchOr(V def)
Returns all values which match the argument or
a list containing the given default if argument
is omitted.
|
List<V> |
matchWithPermOr(String permission,
CommandSender sender)
Same as
SenderMatchingArg.matchOr(CommandSender)
but also check the given permission if
the argument is specified. |
defaultFor, missingPermOtherMessage, valueOr, valueWithPermOr
valueOr
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
match
valueOr, valueWithPermOr
value
public AbstractSenderMatchingArg(String string)
public List<V> matchOr(V def)
MatchingArg
matchOr
in interface MatchingArg<V>
public List<V> matchOr(List<V> def)
MatchingArg
matchOr
in interface MatchingArg<V>
public List<V> matchOr(CommandSender sender)
SenderMatchingArg
matchOr
in interface SenderMatchingArg<V>
public List<V> matchWithPermOr(String permission, CommandSender sender)
SenderMatchingArg
SenderMatchingArg.matchOr(CommandSender)
but also check the given permission if
the argument is specified.matchWithPermOr
in interface SenderMatchingArg<V>
Copyright © 2012. All Rights Reserved.