Revert "[Spawn] Please join me in welcoming EssentialsSpawn to Java 1.6 and modern bukkit.

This reverts commit a11e8d4236.
If you don't understand the code, don't touch it.
This commit is contained in:
KHobbits 2013-02-26 03:30:11 +00:00
parent de91073dda
commit 6f55e4b316
2 changed files with 2 additions and 7 deletions

View File

@ -23,7 +23,6 @@ public class EssentialsSpawn extends JavaPlugin
private transient IEssentials ess; private transient IEssentials ess;
private transient SpawnStorage spawns; private transient SpawnStorage spawns;
@Override
public void onEnable() public void onEnable()
{ {
final PluginManager pluginManager = getServer().getPluginManager(); final PluginManager pluginManager = getServer().getPluginManager();
@ -60,13 +59,13 @@ public class EssentialsSpawn extends JavaPlugin
}, this); }, this);
} }
@Override
public void onDisable() public void onDisable()
{ {
} }
@Override @Override
public boolean onCommand(final CommandSender sender, final Command command, final String commandLabel, final String[] args) public boolean onCommand(final CommandSender sender, final Command command,
final String commandLabel, final String[] args)
{ {
return ess.onCommandEssentials(sender, command, commandLabel, args, EssentialsSpawn.class.getClassLoader(), "com.earth2me.essentials.spawn.Command", "essentials.", spawns); return ess.onCommandEssentials(sender, command, commandLabel, args, EssentialsSpawn.class.getClassLoader(), "com.earth2me.essentials.spawn.Command", "essentials.", spawns);
} }

View File

@ -16,8 +16,6 @@ import java.util.logging.Logger;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerRespawnEvent; import org.bukkit.event.player.PlayerRespawnEvent;
@ -37,7 +35,6 @@ public class EssentialsSpawnPlayerListener implements Listener
this.spawns = spawns; this.spawns = spawns;
} }
@EventHandler (priority = EventPriority.HIGH)
public void onPlayerRespawn(final PlayerRespawnEvent event) public void onPlayerRespawn(final PlayerRespawnEvent event)
{ {
final User user = ess.getUser(event.getPlayer()); final User user = ess.getUser(event.getPlayer());
@ -72,7 +69,6 @@ public class EssentialsSpawnPlayerListener implements Listener
} }
} }
@EventHandler (priority = EventPriority.MONITOR)
public void onPlayerJoin(final PlayerJoinEvent event) public void onPlayerJoin(final PlayerJoinEvent event)
{ {
ess.runTaskAsynchronously(new Runnable() ess.runTaskAsynchronously(new Runnable()