mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2025-02-19 12:34:28 +00:00
/gtfo will work from all connections
Thanks Darth :)
This commit is contained in:
parent
156cf7efd3
commit
6484eab27e
1 changed files with 5 additions and 7 deletions
|
@ -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 a new issue