mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Renamed StatsCommand.java to McstatsCommand.java to reflect change to
command name.
This commit is contained in:
parent
95da5a4535
commit
828f5ad173
@ -16,16 +16,16 @@ import com.gmail.nossr50.datatypes.SkillType;
|
|||||||
import com.gmail.nossr50.locale.mcLocale;
|
import com.gmail.nossr50.locale.mcLocale;
|
||||||
import com.gmail.nossr50.skills.Skills;
|
import com.gmail.nossr50.skills.Skills;
|
||||||
|
|
||||||
public class StatsCommand implements CommandExecutor {
|
public class McstatsCommand implements CommandExecutor {
|
||||||
private final mcMMO plugin;
|
private final mcMMO plugin;
|
||||||
|
|
||||||
public StatsCommand(mcMMO instance) {
|
public McstatsCommand(mcMMO instance) {
|
||||||
this.plugin = instance;
|
this.plugin = instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
if (!LoadProperties.statsEnable) {
|
if (!LoadProperties.mcstatsEnable) {
|
||||||
sender.sendMessage("This command is not enabled.");
|
sender.sendMessage("This command is not enabled.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
@ -42,7 +42,7 @@ public class LoadProperties {
|
|||||||
xplockEnable, xpbar, xpicon, partybar, xprateEnable, spoutEnabled,
|
xplockEnable, xpbar, xpicon, partybar, xprateEnable, spoutEnabled,
|
||||||
donateMessage, chimaeraWingEnable, xpGainsMobSpawners, myspawnEnable,
|
donateMessage, chimaeraWingEnable, xpGainsMobSpawners, myspawnEnable,
|
||||||
mccEnable, mcmmoEnable, partyEnable, inviteEnable, acceptEnable,
|
mccEnable, mcmmoEnable, partyEnable, inviteEnable, acceptEnable,
|
||||||
whoisEnable, statsEnable, addxpEnable, ptpEnable, mmoeditEnable,
|
whoisEnable, mcstatsEnable, addxpEnable, ptpEnable, mmoeditEnable,
|
||||||
clearmyspawnEnable, mcgodEnable, mcabilityEnable, mctopEnable,
|
clearmyspawnEnable, mcgodEnable, mcabilityEnable, mctopEnable,
|
||||||
mcrefreshEnable, aEnable, pEnable, enableMotd, enableMySpawn,
|
mcrefreshEnable, aEnable, pEnable, enableMotd, enableMySpawn,
|
||||||
enableCobbleToMossy, useMySQL, toolsLoseDurabilityFromAbilities,
|
enableCobbleToMossy, useMySQL, toolsLoseDurabilityFromAbilities,
|
||||||
@ -402,7 +402,7 @@ public class LoadProperties {
|
|||||||
mcmmoEnable = readBoolean("Commands.mcmmo.Enabled", true);
|
mcmmoEnable = readBoolean("Commands.mcmmo.Enabled", true);
|
||||||
mccEnable = readBoolean("Commands.mcc.Enabled", true);
|
mccEnable = readBoolean("Commands.mcc.Enabled", true);
|
||||||
mcgodEnable = readBoolean("Commands.mcgod.Enabled", true);
|
mcgodEnable = readBoolean("Commands.mcgod.Enabled", true);
|
||||||
statsEnable = readBoolean("Commands.stats.Enabled", true);
|
mcstatsEnable = readBoolean("Commands.mcstats.Enabled", true);
|
||||||
mmoeditEnable = readBoolean("Commands.mmoedit.Enabled", true);
|
mmoeditEnable = readBoolean("Commands.mmoedit.Enabled", true);
|
||||||
ptpEnable = readBoolean("Commands.ptp.Enabled", true);
|
ptpEnable = readBoolean("Commands.ptp.Enabled", true);
|
||||||
partyEnable = readBoolean("Commands.party.Enabled", true);
|
partyEnable = readBoolean("Commands.party.Enabled", true);
|
||||||
|
@ -317,7 +317,7 @@ public class mcMMO extends JavaPlugin
|
|||||||
if(LoadProperties.mmoeditEnable) getCommand("mmoedit").setExecutor(new MmoeditCommand(this));
|
if(LoadProperties.mmoeditEnable) getCommand("mmoedit").setExecutor(new MmoeditCommand(this));
|
||||||
getCommand("mmoupdate").setExecutor(new MmoupdateCommand());
|
getCommand("mmoupdate").setExecutor(new MmoupdateCommand());
|
||||||
if(LoadProperties.myspawnEnable) getCommand("myspawn").setExecutor(new MyspawnCommand());
|
if(LoadProperties.myspawnEnable) getCommand("myspawn").setExecutor(new MyspawnCommand());
|
||||||
if(LoadProperties.statsEnable) getCommand("mcstats").setExecutor(new StatsCommand(this));
|
if(LoadProperties.mcstatsEnable) getCommand("mcstats").setExecutor(new McstatsCommand(this));
|
||||||
if(LoadProperties.whoisEnable) getCommand("whois").setExecutor(new WhoisCommand(this));
|
if(LoadProperties.whoisEnable) getCommand("whois").setExecutor(new WhoisCommand(this));
|
||||||
if(LoadProperties.xprateEnable) getCommand("xprate").setExecutor(new XprateCommand());
|
if(LoadProperties.xprateEnable) getCommand("xprate").setExecutor(new XprateCommand());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user