本文整理了Java中net.md_5.bungee.event.EventHandler
类的一些代码示例,展示了EventHandler
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EventHandler
类的具体详情如下:
包路径:net.md_5.bungee.event.EventHandler
类名称:EventHandler
暂无
代码示例来源:origin: CodeCrafter47/BungeeTabListPlus
@EventHandler
public void onReload(ProxyReloadEvent event) {
plugin.reload();
}
}
代码示例来源:origin: SpigotMC/BungeeCord
handler.put( params[0], prioritiesMap );
Set<Method> priority = prioritiesMap.get( annotation.priority() );
if ( priority == null )
prioritiesMap.put( annotation.priority(), priority );
代码示例来源:origin: CodeCrafter47/BungeeTabListPlus
@EventHandler
public void onPlayerDisconnect(PlayerDisconnectEvent event) {
playerPlayerConnectionInfoMap.remove(event.getPlayer());
}
代码示例来源:origin: aikar/commands
@EventHandler
public void onDisconnect(PlayerDisconnectEvent disconnectEvent) {
//cleanup
ProxiedPlayer player = disconnectEvent.getPlayer();
manager.issuersLocale.remove(player.getUniqueId());
}
}
代码示例来源:origin: wacossusca34/Consoles
@EventHandler
@SuppressWarnings("unused")
public void onPlayerDisconnect(PlayerDisconnectEvent event) {
connected.remove(event.getPlayer().getUniqueId());
}
@EventHandler
代码示例来源:origin: CodeCrafter47/BungeeTabListPlus
@EventHandler
public void onPlayerConnect(PostLoginEvent event) {
playerPlayerConnectionInfoMap.put(event.getPlayer(), new PlayerConnectionInfo());
}
代码示例来源:origin: NuVotifier/NuVotifier
@EventHandler
public void onPluginMessage(PluginMessageEvent e) {
if (e.getTag().equals(channel)) e.setCancelled(true);
}
代码示例来源:origin: NuVotifier/NuVotifier
@EventHandler
public void onPluginMessage(PluginMessageEvent e) {
if (e.getTag().equals(channel)) e.setCancelled(true);
}
代码示例来源:origin: TimoCloud/TimoCloud
@EventHandler (priority = -128)
public void onPreLoginEvent(PreLoginEvent event) {
injectConnection(event.getConnection());
}
代码示例来源:origin: TimoCloud/TimoCloud
@EventHandler (priority = -128)
public void onPlayerHandshakeEvent(PlayerHandshakeEvent event) {
injectConnection(event.getConnection());
}
代码示例来源:origin: TimoCloud/TimoCloud
@EventHandler (priority = -128)
public void onProxyPingEvent(ProxyPingEvent event) {
injectConnection(event.getConnection());
}
代码示例来源:origin: Rsl1122/Plan-PlayerAnalytics
@EventHandler
public void onPlayerQuit(ServerDisconnectEvent quitEvent) {
removePlayer(quitEvent.getPlayer());
}
代码示例来源:origin: DevLeoko/AdvancedBan
@EventHandler
public void onUnPunish(RevokePunishmentEvent e) {
sendToBukkit("Unpunish", Arrays.asList(e.getPunishment().toString()));
}
代码示例来源:origin: CodeCrafter47/BungeeTabListPlus
@EventHandler
public void onServerChange(ServerConnectedEvent event) {
PlayerConnectionInfo previous = playerPlayerConnectionInfoMap.put(event.getPlayer(), new PlayerConnectionInfo());
if (previous != null) {
PlayerBridgeDataCache playerBridgeData = previous.playerBridgeData;
if (playerBridgeData != null) {
synchronized (playerBridgeData) {
playerBridgeData.connection = null;
playerBridgeData.reset();
}
}
}
}
代码示例来源:origin: DevLeoko/AdvancedBan
@EventHandler
public void onPunish(PunishmentEvent e) {
sendToBukkit("Punish", Arrays.asList(e.getPunishment().toString()));
}
代码示例来源:origin: minecrafter/RedisBungee
@EventHandler
public void onPostLogin(final PostLoginEvent event) {
plugin.getProxy().getScheduler().runAsync(plugin, new RedisCallable<Void>(plugin) {
@Override
protected Void call(Jedis jedis) {
jedis.publish("redisbungee-data", RedisBungee.getGson().toJson(new DataManager.DataManagerMessage<>(
event.getPlayer().getUniqueId(), DataManager.DataManagerMessage.Action.JOIN,
new DataManager.LoginPayload(event.getPlayer().getAddress().getAddress()))));
return null;
}
});
}
代码示例来源:origin: minecrafter/RedisBungee
@EventHandler
public void onPostLogin(PostLoginEvent event) {
// Invalidate all entries related to this player, since they now lie.
invalidate(event.getPlayer().getUniqueId());
}
代码示例来源:origin: minecrafter/RedisBungee
@EventHandler
public void onPlayerDisconnect(PlayerDisconnectEvent event) {
// Invalidate all entries related to this player, since they now lie.
invalidate(event.getPlayer().getUniqueId());
}
代码示例来源:origin: minecrafter/RedisBungee
@EventHandler
public void onPlayerDisconnect(final PlayerDisconnectEvent event) {
plugin.getProxy().getScheduler().runAsync(plugin, new RedisCallable<Void>(plugin) {
@Override
protected Void call(Jedis jedis) {
Pipeline pipeline = jedis.pipelined();
RedisUtil.cleanUpPlayer(event.getPlayer().getUniqueId().toString(), pipeline);
pipeline.sync();
return null;
}
});
}
代码示例来源:origin: TimoCloud/TimoCloud
@EventHandler
public void onPlayerConnect(PostLoginEvent event) {
TimoCloudBungee.getInstance().sendPlayerCount();
pending.add(event.getPlayer().getUniqueId());
}
内容来源于网络,如有侵权,请联系作者删除!