mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 02:05:41 +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");
|
||||
return true;
|
||||
}
|
||||
|
||||
Plugin essentials = server.getPluginManager().getPlugin("Essentials");
|
||||
FUtil.adminAction(sender.getName(), "Wiping Essentials Warps", true);
|
||||
|
||||
FUtil.deleteFolder(new File(server.getPluginManager().getPlugin("Essentials").getDataFolder(), "warps"));
|
||||
|
||||
server.dispatchCommand(sender, "plc reload essentials");
|
||||
|
||||
server.getPluginManager().disablePlugin(essentials);
|
||||
FUtil.deleteFolder(new File(essentials.getDataFolder(), "warps"));
|
||||
server.getPluginManager().enablePlugin(essentials);
|
||||
msg("All warps deleted.");
|
||||
return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user