From 2d12b61c29a026d55a36a35594887d5a63bfda64 Mon Sep 17 00:00:00 2001 From: Frank Baumann Date: Tue, 2 Oct 2012 17:45:06 +0200 Subject: [PATCH] Added reload command --- .../dre/dungeonsxl/commands/CMDReload.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 DungeonsXL/src/com/dre/dungeonsxl/commands/CMDReload.java 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!"); + } + +}