Update Command_gtfo.java

This commit is contained in:
marcocorriero 2017-11-17 14:15:48 +01:00 committed by GitHub
parent ff8f6a1a96
commit 5ee8c31a3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,16 +59,9 @@ public class Command_gtfo extends FreedomCommand
plugin.rb.rollback(player.getName());
}
if (getServer().getPluginManager().isPluginEnabled("CoreProtect"))
{
try
{
server.dispatchCommand(sender, "co rollback t:1d r:#global #silent u:" + player.getName());
}
catch (NoClassDefFoundError ex)
{
}
else
{
plugin.cpb.rollback(player.getName());
}
// Deop
@ -117,4 +110,4 @@ public class Command_gtfo extends FreedomCommand
return true;
}
}
}