diff --git a/DungeonsXL/src/com/dre/dungeonsxl/commands/CMDReload.java b/DungeonsXL/src/com/dre/dungeonsxl/commands/CMDReload.java new file mode 100644 index 00000000..9422abd9 --- /dev/null +++ b/DungeonsXL/src/com/dre/dungeonsxl/commands/CMDReload.java @@ -0,0 +1,25 @@ +package com.dre.dungeonsxl.commands; + + +import org.bukkit.ChatColor; +import org.bukkit.entity.Player; + +public class CMDReload extends DCommand{ + + public CMDReload(){ + this.command="reload"; + this.args=0; + this.help="/dxl reload - Reloadet das Plugin"; + this.permissions="dxl.reload"; + } + + + @Override + public void onExecute(String[] args, Player player) { + p.msg(player, ChatColor.GREEN+"DungeonsXL wird neu geladen"); + p.onDisable(); + p.onEnable(); + p.msg(player, ChatColor.GREEN+"DungeonsXL neuladen erfolgreich!"); + } + +}