From 5ee8c31a3d227e0756429b23de85f45b77a7732c Mon Sep 17 00:00:00 2001 From: marcocorriero Date: Fri, 17 Nov 2017 14:15:48 +0100 Subject: [PATCH] Update Command_gtfo.java --- .../totalfreedommod/command/Command_gtfo.java | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_gtfo.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_gtfo.java index 1cbd3614..6b37e334 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_gtfo.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_gtfo.java @@ -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; } -} \ No newline at end of file +}