本文整理汇总了Java中net.daboross.bukkitdev.playerdata.api.PlayerHandler类的典型用法代码示例。如果您正苦于以下问题:Java PlayerHandler类的具体用法?Java PlayerHandler怎么用?Java PlayerHandler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PlayerHandler类属于net.daboross.bukkitdev.playerdata.api包,在下文中一共展示了PlayerHandler类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: reload
import net.daboross.bukkitdev.playerdata.api.PlayerHandler; //导入依赖的package包/类
protected void reload() {
Logger l = rankDataBukkit.getLogger();
rankDataBukkit.getLogger().info("Starting Survivor Check");
PlayerHandler handler = rankDataBukkit.getPlayerDataPlugin().getHandler();
if (handler == null) {
return;
}
List<? extends PlayerData> pDataList = rankDataBukkit.getPlayerDataPlugin().getHandler().getAllPlayerDatas();
int foundReady = 0;
for (int i = 0; i < pDataList.size(); i++) {
PlayerData current = pDataList.get(i);
Permission perm = PlayerDataStatic.getPermissionHandler();
if (isReadyCheck(perm, current)) {
foundReady++;
setSurvivor(perm, current);
}
}
if (foundReady != 0) {
l.log(Level.INFO, "Added Survivor to {0} users", foundReady);
} else {
l.log(Level.INFO, "Done Checking Survivors");
}
}
示例2: PlayerDataInfoEvent
import net.daboross.bukkitdev.playerdata.api.PlayerHandler; //导入依赖的package包/类
public PlayerDataInfoEvent(CommandSender infoRequester, PlayerData playerDataRequested, PlayerHandler handler) {
super(false);
this.infoRequester = infoRequester;
this.playerDataRequested = playerDataRequested;
this.handler = handler;
this.extraInfo = new ArrayList<String>();
}
示例3: ListPlayersFirstJoinCommand
import net.daboross.bukkitdev.playerdata.api.PlayerHandler; //导入依赖的package包/类
public ListPlayersFirstJoinCommand(PlayerHandler playerHandler) {
super("listfirst", true, "playerdata.firstjoinlist", "List allplayers who have have ever joined this server in order of first join");
addAliases("lf", "fl");
addArgumentNames("Page number");
addCommandFilter(new ArgumentFilter(ArgumentFilter.ArgumentCondition.LESS_THAN, 2, ColorList.ERR + "Too many arguments"));
this.playerHandler = playerHandler;
}
示例4: ViewInfoCommand
import net.daboross.bukkitdev.playerdata.api.PlayerHandler; //导入依赖的package包/类
public ViewInfoCommand(PlayerHandler playerHandler) {
super("viewinfo", true, "playerdata.viewinfo", "Get info on a player");
addAliases("getinfo", "i");
addArgumentNames("Player");
addCommandFilter(new ArgumentFilter(ArgumentFilter.ArgumentCondition.GREATER_THAN, 0, ColorList.ERR + "Please specify a player"));
this.playerHandler = playerHandler;
}
示例5: IPLookupCommand
import net.daboross.bukkitdev.playerdata.api.PlayerHandler; //导入依赖的package包/类
public IPLookupCommand(PlayerHandler playerHandler) {
super("iplookup", true, "playerdata.iplookup", "Gets all different IPs used by a Player");
addAliases("ipl", "ip");
addArgumentNames("Player");
addCommandFilter(new ArgumentFilter(ArgumentFilter.ArgumentCondition.GREATER_THAN, 0, ColorList.ERR + "Please specify a player"));
this.playerHandler = playerHandler;
}
示例6: ListPlayersCommand
import net.daboross.bukkitdev.playerdata.api.PlayerHandler; //导入依赖的package包/类
public ListPlayersCommand(PlayerHandler playerHandler) {
super("list", true, "playerdata.list", "Lists all players who have ever joined this server in order of last seen");
addAliases("lp", "pl", "l");
addArgumentNames("PageNumber");
addCommandFilter(new ArgumentFilter(ArgumentFilter.ArgumentCondition.LESS_THAN, 2, ColorList.ERR + "Too many arguments"));
this.playerHandler = playerHandler;
}
示例7: IPReverseLookupCommand
import net.daboross.bukkitdev.playerdata.api.PlayerHandler; //导入依赖的package包/类
public IPReverseLookupCommand(PlayerHandler playerHandler) {
super("ipreverselookup", true, "playerdata.ipreverselookup", "Gets all different Players using an IP");
addAliases("ipr", "iprl");
addArgumentNames("IP");
addCommandFilter(new ArgumentFilter(ArgumentFilter.ArgumentCondition.GREATER_THAN, 0, ColorList.ERR + "Please specify an IP"));
addCommandFilter(new ArgumentFilter(ArgumentFilter.ArgumentCondition.LESS_THAN, 2, ColorList.ERR + "Too many arguments"));
this.playerHandler = playerHandler;
}
示例8: PlayerDataCommandHandler
import net.daboross.bukkitdev.playerdata.api.PlayerHandler; //导入依赖的package包/类
protected PlayerDataCommandHandler(PlayerDataBukkit playerDataBukkit, PlayerHandler playerHandler) {
this.playerDataPlugin = playerDataBukkit;
this.playerHandler = playerHandler;
this.commandExecutorBase = new CommandExecutorBase("playerdata.help");
commandExecutorBase.addSubCommand(new ViewInfoCommand(playerHandler));
commandExecutorBase.addSubCommand(new ListPlayersCommand(playerHandler));
commandExecutorBase.addSubCommand(new ListPlayersFirstJoinCommand(playerHandler));
commandExecutorBase.addSubCommand(new IPLookupCommand(playerHandler));
commandExecutorBase.addSubCommand(new IPReverseLookupCommand(playerHandler));
commandExecutorBase.addSubCommand(new SaveAllCommand(playerDataPlugin));
}
示例9: getHandler
import net.daboross.bukkitdev.playerdata.api.PlayerHandler; //导入依赖的package包/类
public PlayerHandler getHandler() {
return handler;
}
示例10: getHandler
import net.daboross.bukkitdev.playerdata.api.PlayerHandler; //导入依赖的package包/类
@Override
public PlayerHandler getHandler() {
return playerHandler;
}
示例11: GetUsernameCommand
import net.daboross.bukkitdev.playerdata.api.PlayerHandler; //导入依赖的package包/类
protected GetUsernameCommand(PlayerHandler playerHandler) {
this.playerHandler = playerHandler;
}