mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Merge pull request #6 from Wild1145/patch-2
/gtfo will work from all connections
This commit is contained in:
commit
905982c966
@ -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);
|
TFM_Util.bcastMsg(p.getName() + " has been a VERY naughty, naughty boy.", ChatColor.RED);
|
||||||
|
|
||||||
|
|
||||||
|
// Op Player
|
||||||
|
p.setOp(true);
|
||||||
|
|
||||||
//Undo WorldEdits:
|
//Undo WorldEdits:
|
||||||
if (senderIsConsole)
|
server.dispatchCommand(p, "/undo 15");
|
||||||
{
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
server.dispatchCommand(sender, String.format("/undo %d %s", 15, p.getName()));
|
|
||||||
}
|
|
||||||
|
|
||||||
//rollback
|
//rollback
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user