mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 10:05:59 +00:00
Update Command_wipewarps.java
This commit is contained in:
parent
75c0db71ff
commit
77131c2138
@ -21,13 +21,11 @@ public class Command_wipewarps extends FreedomCommand
|
|||||||
msg("Essentials is not enabled on this server");
|
msg("Essentials is not enabled on this server");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Plugin essentials = server.getPluginManager().getPlugin("Essentials");
|
||||||
FUtil.adminAction(sender.getName(), "Wiping Essentials Warps", true);
|
FUtil.adminAction(sender.getName(), "Wiping Essentials Warps", true);
|
||||||
|
server.getPluginManager().disablePlugin(essentials);
|
||||||
FUtil.deleteFolder(new File(server.getPluginManager().getPlugin("Essentials").getDataFolder(), "warps"));
|
FUtil.deleteFolder(new File(essentials.getDataFolder(), "warps"));
|
||||||
|
server.getPluginManager().enablePlugin(essentials);
|
||||||
server.dispatchCommand(sender, "plc reload essentials");
|
|
||||||
|
|
||||||
msg("All warps deleted.");
|
msg("All warps deleted.");
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user