/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/GcCommand.java |
Parent Directory | Revision Log | Patch
miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/GcCommand.java revision 1673 by torben, Fri Dec 23 10:27:05 2011 UTC | miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/GcCommand.java revision 1684 by torben, Fri Jan 27 12:21:27 2012 UTC | |
---|---|---|
# | Line 20 public class GcCommand implements Comman | Line 20 public class GcCommand implements Comman |
20 | public boolean onCommand(final CommandSender sender, Command command, String label, String[] args) { | public boolean onCommand(final CommandSender sender, Command command, String label, String[] args) { |
21 | ||
22 | if ( sender instanceof Player) { | if ( sender instanceof Player) { |
23 | sender.sendMessage("gc can only be called from console!"); | if ( ! sender.isOp() ) { |
24 | return false; | sender.sendMessage("gc can only be called from console - or by a server operator"); |
25 | return false; | |
26 | } | |
27 | } | } |
28 | ||
29 | System.gc(); | System.gc(); |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |