mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-07 19:30:48 +01:00
Added reload command
This commit is contained in:
parent
126673dfbc
commit
2d12b61c29
25
DungeonsXL/src/com/dre/dungeonsxl/commands/CMDReload.java
Normal file
25
DungeonsXL/src/com/dre/dungeonsxl/commands/CMDReload.java
Normal 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!");
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user