Saber-Factions/src/main/java/com/massivecraft/factions/cmd/CmdReload.java

34 lines
894 B
Java

package com.massivecraft.factions.cmd;
import com.massivecraft.factions.*;
import com.massivecraft.factions.struct.Permission;
public class CmdReload extends FCommand {
public CmdReload() {
super();
this.aliases.add("reload");
//this.requiredArgs.add("");
this.optionalArgs.put("file", "all");
this.permission = Permission.RELOAD.node;
this.disableOnLock = false;
senderMustBePlayer = false;
senderMustBeMember = false;
senderMustBeModerator = false;
senderMustBeAdmin = false;
}
@Override
public void perform() {
long timeInitStart = System.currentTimeMillis();
Conf.load();
long timeReload = (System.currentTimeMillis() - timeInitStart);
msg("<i>Reloaded <h>conf.json <i>from disk, took <h>%dms<i>.", timeReload);
}
}