Fixed bug in /halt

This commit is contained in:
Jerom van der Sar 2013-07-10 23:47:21 +02:00
parent 6d9e9406ec
commit f21e50e002
5 changed files with 6 additions and 9 deletions

View File

@ -1,5 +1,5 @@
#Wed, 10 Jul 2013 23:30:57 +0200 #Wed, 10 Jul 2013 23:43:28 +0200
program.VERSION=2.21 program.VERSION=2.21
program.BUILDNUM=294 program.BUILDNUM=297
program.BUILDDATE=07/10/2013 11\:30 PM program.BUILDDATE=07/10/2013 11\:43 PM

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit! #Build Number for ANT. Do not edit!
#Wed Jul 10 23:30:57 CEST 2013 #Wed Jul 10 23:43:28 CEST 2013
build.number=295 build.number=298

View File

@ -85,7 +85,6 @@ public class Command_halt extends TFM_Command
{ {
sender.sendMessage(ex.getMessage()); sender.sendMessage(ex.getMessage());
return true; return true;
} }

View File

@ -415,7 +415,6 @@ public class TFM_PlayerData
stopOrbiting(); stopOrbiting();
setFrozen(true); setFrozen(true);
setMuted(true); setMuted(true);
setHalted(true);
player.sendMessage(ChatColor.GRAY + "You have been halted, don't move!"); player.sendMessage(ChatColor.GRAY + "You have been halted, don't move!");
} }
@ -425,7 +424,6 @@ public class TFM_PlayerData
player.setGameMode(GameMode.CREATIVE); player.setGameMode(GameMode.CREATIVE);
setFrozen(false); setFrozen(false);
setMuted(false); setMuted(false);
setHalted(false);
player.sendMessage(ChatColor.GRAY + "You are no longer halted."); player.sendMessage(ChatColor.GRAY + "You are no longer halted.");
} }

View File

@ -188,7 +188,7 @@ public class TotalFreedomMod extends JavaPlugin
} }
catch (Throwable ex) catch (Throwable ex)
{ {
sender.sendMessage(ChatColor.RED + "Command Error: " + ex.getMessage()); TFM_Log.severe("Command Error: " + commandLabel + "\n" + ExceptionUtils.getStackTrace(ex));
} }
dispatcher = null; dispatcher = null;