public class PlayerArg extends AbstractSenderMatchingArg<Player>
Modifier and Type | Class and Description |
---|---|
static class |
PlayerArg.MoreThanOnePlayerFound |
static class |
PlayerArg.NoSuchPlayer |
string
Constructor and Description |
---|
PlayerArg(CommandsMessages messages,
String string) |
Modifier and Type | Method and Description |
---|---|
protected Player |
defaultFor(CommandSender sender) |
List<Player> |
match()
Returns all values which match the argument.
|
protected String |
missingPermOtherMessage(String permission) |
Player |
value()
Returns the parsed value.
|
matchOr, matchOr, matchOr, matchWithPermOr
valueOr, valueWithPermOr
valueOr
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
valueOr, valueWithPermOr
public PlayerArg(CommandsMessages messages, String string)
public Player value()
CommandArg
protected Player defaultFor(CommandSender sender)
defaultFor
in class AsbtractSenderArg<Player>
protected String missingPermOtherMessage(String permission)
missingPermOtherMessage
in class AsbtractSenderArg<Player>
public List<Player> match()
MatchingArg
Copyright © 2012. All Rights Reserved.