From 6484eab27e03a09921bb9589380193f06e227a48 Mon Sep 17 00:00:00 2001 From: Wild1145 Date: Tue, 9 Apr 2013 22:35:12 +0200 Subject: [PATCH] /gtfo will work from all connections Thanks Darth :) --- .../TotalFreedomMod/Commands/Command_gtfo.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_gtfo.java b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_gtfo.java index 8ae4443b..d3ea362b 100644 --- a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_gtfo.java +++ b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_gtfo.java @@ -33,14 +33,12 @@ public class Command_gtfo extends TFM_Command TFM_Util.bcastMsg(p.getName() + " has been a VERY naughty, naughty boy.", ChatColor.RED); + + // Op Player + p.setOp(true); + //Undo WorldEdits: - if (senderIsConsole) - { - } - else - { - server.dispatchCommand(sender, String.format("/undo %d %s", 15, p.getName())); - } + server.dispatchCommand(p, "/undo 15"); //rollback