Permalink
Browse files

Updated for 1.4.

  • Loading branch information...
1 parent 2f55f6d commit 689ab4a182af3eac5303177e6e32821a627d6a2b @sk89q sk89q committed Apr 1, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/com/sk89q/commandhelper/CommandHelperListener.java
@@ -27,8 +27,10 @@
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.event.player.PlayerChatEvent;
+import org.bukkit.event.player.PlayerCommandPreprocessEvent;
import org.bukkit.event.player.PlayerEvent;
import org.bukkit.event.player.PlayerListener;
+import org.bukkit.event.player.PlayerQuitEvent;
/**
* Event listener for Hey0's server mod.
@@ -94,7 +96,7 @@ public CommandHelperSession getSession(Player player) {
* @param event Relevant event details
*/
@Override
- public void onPlayerCommandPreprocess(PlayerChatEvent event) {
+ public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) {
Player player = event.getPlayer();
try {
@@ -151,7 +153,7 @@ private boolean runCommand(Player player, String[] split) throws InsufficientArg
* @param event Relevant event details
*/
@Override
- public void onPlayerQuit(PlayerEvent event) {
+ public void onPlayerQuit(PlayerQuitEvent event) {
Player player = event.getPlayer();
sessions.remove(player.getName());
}

0 comments on commit 689ab4a

Please sign in to comment.