Added reload command

This commit is contained in:
Frank Baumann 2012-10-02 17:45:06 +02:00
parent 126673dfbc
commit 2d12b61c29

View File

@ -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!");
}
}