当前位置: 首页>>代码示例>>Java>>正文


Java PlayerHandler类代码示例

本文整理汇总了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");
    }
}
 
开发者ID:AndoxynPlugins,项目名称:RankData,代码行数:24,代码来源:SurvivorChecker.java

示例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>();
}
 
开发者ID:AndoxynPlugins,项目名称:PlayerData-API,代码行数:8,代码来源:PlayerDataInfoEvent.java

示例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;
}
 
开发者ID:AndoxynPlugins,项目名称:PlayerData,代码行数:8,代码来源:ListPlayersFirstJoinCommand.java

示例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;
}
 
开发者ID:AndoxynPlugins,项目名称:PlayerData,代码行数:8,代码来源:ViewInfoCommand.java

示例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;
}
 
开发者ID:AndoxynPlugins,项目名称:PlayerData,代码行数:8,代码来源:IPLookupCommand.java

示例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;
}
 
开发者ID:AndoxynPlugins,项目名称:PlayerData,代码行数:8,代码来源:ListPlayersCommand.java

示例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;
}
 
开发者ID:AndoxynPlugins,项目名称:PlayerData,代码行数:9,代码来源:IPReverseLookupCommand.java

示例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));
}
 
开发者ID:AndoxynPlugins,项目名称:PlayerData,代码行数:12,代码来源:PlayerDataCommandHandler.java

示例9: getHandler

import net.daboross.bukkitdev.playerdata.api.PlayerHandler; //导入依赖的package包/类
public PlayerHandler getHandler() {
    return handler;
}
 
开发者ID:AndoxynPlugins,项目名称:PlayerData-API,代码行数:4,代码来源:PlayerDataInfoEvent.java

示例10: getHandler

import net.daboross.bukkitdev.playerdata.api.PlayerHandler; //导入依赖的package包/类
@Override
public PlayerHandler getHandler() {
    return playerHandler;
}
 
开发者ID:AndoxynPlugins,项目名称:PlayerData,代码行数:5,代码来源:PlayerDataBukkit.java

示例11: GetUsernameCommand

import net.daboross.bukkitdev.playerdata.api.PlayerHandler; //导入依赖的package包/类
protected GetUsernameCommand(PlayerHandler playerHandler) {
    this.playerHandler = playerHandler;
}
 
开发者ID:AndoxynPlugins,项目名称:PlayerData,代码行数:4,代码来源:GetUsernameCommand.java


注:本文中的net.daboross.bukkitdev.playerdata.api.PlayerHandler类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。