forked from Upstream/mmocore
Fixed refactored strings
This commit is contained in:
parent
59623392d2
commit
14f714d95f
@ -260,38 +260,38 @@ public class MMOCore extends JavaPlugin {
|
|||||||
FileConfiguration config = new ConfigFile("commands").getConfig();
|
FileConfiguration config = new ConfigFile("commands").getConfig();
|
||||||
|
|
||||||
if (config.contains("player"))
|
if (config.contains("player"))
|
||||||
commandMap.register("net/Indyuce/mmocore", new PlayerStatsCommand(config.getConfigurationSection("player")));
|
commandMap.register("mmocore", new PlayerStatsCommand(config.getConfigurationSection("player")));
|
||||||
if (config.contains("attributes"))
|
if (config.contains("attributes"))
|
||||||
commandMap.register("net/Indyuce/mmocore", new AttributesCommand(config.getConfigurationSection("attributes")));
|
commandMap.register("mmocore", new AttributesCommand(config.getConfigurationSection("attributes")));
|
||||||
if (config.contains("class"))
|
if (config.contains("class"))
|
||||||
commandMap.register("net/Indyuce/mmocore", new ClassCommand(config.getConfigurationSection("class")));
|
commandMap.register("mmocore", new ClassCommand(config.getConfigurationSection("class")));
|
||||||
if (config.contains("waypoints"))
|
if (config.contains("waypoints"))
|
||||||
commandMap.register("net/Indyuce/mmocore", new WaypointsCommand(config.getConfigurationSection("waypoints")));
|
commandMap.register("mmocore", new WaypointsCommand(config.getConfigurationSection("waypoints")));
|
||||||
if (config.contains("quests"))
|
if (config.contains("quests"))
|
||||||
commandMap.register("net/Indyuce/mmocore", new QuestsCommand(config.getConfigurationSection("quests")));
|
commandMap.register("mmocore", new QuestsCommand(config.getConfigurationSection("quests")));
|
||||||
if (config.contains("skills"))
|
if (config.contains("skills"))
|
||||||
commandMap.register("net/Indyuce/mmocore", new SkillsCommand(config.getConfigurationSection("skills")));
|
commandMap.register("mmocore", new SkillsCommand(config.getConfigurationSection("skills")));
|
||||||
if (config.contains("friends"))
|
if (config.contains("friends"))
|
||||||
commandMap.register("net/Indyuce/mmocore", new FriendsCommand(config.getConfigurationSection("friends")));
|
commandMap.register("mmocore", new FriendsCommand(config.getConfigurationSection("friends")));
|
||||||
if (config.contains("party"))
|
if (config.contains("party"))
|
||||||
commandMap.register("net/Indyuce/mmocore", new PartyCommand(config.getConfigurationSection("party")));
|
commandMap.register("mmocore", new PartyCommand(config.getConfigurationSection("party")));
|
||||||
if (config.contains("guild"))
|
if (config.contains("guild"))
|
||||||
commandMap.register("net/Indyuce/mmocore", new GuildCommand(config.getConfigurationSection("guild")));
|
commandMap.register("mmocore", new GuildCommand(config.getConfigurationSection("guild")));
|
||||||
if (config.contains("skill-tree"))
|
if (config.contains("skill-tree"))
|
||||||
commandMap.register("net/Indyuce/mmocore", new SkillTreeCommand(config.getConfigurationSection("skill-tree")));
|
commandMap.register("mmocore", new SkillTreeCommand(config.getConfigurationSection("skill-tree")));
|
||||||
if (hasEconomy() && economy.isValid()) {
|
if (hasEconomy() && economy.isValid()) {
|
||||||
if (config.contains("withdraw"))
|
if (config.contains("withdraw"))
|
||||||
commandMap.register("net/Indyuce/mmocore", new WithdrawCommand(config.getConfigurationSection("withdraw")));
|
commandMap.register("mmocore", new WithdrawCommand(config.getConfigurationSection("withdraw")));
|
||||||
if (config.contains("deposit"))
|
if (config.contains("deposit"))
|
||||||
commandMap.register("net/Indyuce/mmocore", new DepositCommand(config.getConfigurationSection("deposit")));
|
commandMap.register("mmocore", new DepositCommand(config.getConfigurationSection("deposit")));
|
||||||
}
|
}
|
||||||
} catch (NoSuchFieldException | IllegalArgumentException | IllegalAccessException ex) {
|
} catch (NoSuchFieldException | IllegalArgumentException | IllegalAccessException ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
MMOCoreCommandTreeRoot mmoCoreCommand = new MMOCoreCommandTreeRoot();
|
MMOCoreCommandTreeRoot mmoCoreCommand = new MMOCoreCommandTreeRoot();
|
||||||
getCommand("net/Indyuce/mmocore").setExecutor(mmoCoreCommand);
|
getCommand("mmocore").setExecutor(mmoCoreCommand);
|
||||||
getCommand("net/Indyuce/mmocore").setTabCompleter(mmoCoreCommand);
|
getCommand("mmocore").setTabCompleter(mmoCoreCommand);
|
||||||
|
|
||||||
if (getConfig().getBoolean("auto-save.enabled")) {
|
if (getConfig().getBoolean("auto-save.enabled")) {
|
||||||
int autosave = getConfig().getInt("auto-save.interval") * 20;
|
int autosave = getConfig().getInt("auto-save.interval") * 20;
|
||||||
|
@ -137,7 +137,7 @@ public class PlayerData extends OfflinePlayerData implements Closable, Experienc
|
|||||||
playerStats = new PlayerStats(this);
|
playerStats = new PlayerStats(this);
|
||||||
|
|
||||||
// Load temporary data if necessary
|
// Load temporary data if necessary
|
||||||
final @Nullable TemporaryPlayerData tempData = mmoData.getExternalData("net/Indyuce/mmocore", TemporaryPlayerData.class);
|
final @Nullable TemporaryPlayerData tempData = mmoData.getExternalData("mmocore", TemporaryPlayerData.class);
|
||||||
if (usingTemporaryData = tempData != null) {
|
if (usingTemporaryData = tempData != null) {
|
||||||
mana = tempData.mana;
|
mana = tempData.mana;
|
||||||
stamina = tempData.stamina;
|
stamina = tempData.stamina;
|
||||||
|
@ -23,7 +23,7 @@ public class MMOCoreCommandTreeRoot extends CommandTreeRoot implements CommandEx
|
|||||||
(explorer, list) -> MMOCore.plugin.questManager.getAll().forEach(quest -> list.add(quest.getId())));
|
(explorer, list) -> MMOCore.plugin.questManager.getAll().forEach(quest -> list.add(quest.getId())));
|
||||||
|
|
||||||
public MMOCoreCommandTreeRoot() {
|
public MMOCoreCommandTreeRoot() {
|
||||||
super("net/Indyuce/mmocore", "mmocore.admin");
|
super("mmocore", "mmocore.admin");
|
||||||
|
|
||||||
addChild(new ReloadCommandTreeNode(this));
|
addChild(new ReloadCommandTreeNode(this));
|
||||||
addChild(new CoinsCommandTreeNode(this));
|
addChild(new CoinsCommandTreeNode(this));
|
||||||
|
@ -37,7 +37,7 @@ public class RPGPlaceholders extends PlaceholderExpansion {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getIdentifier() {
|
public String getIdentifier() {
|
||||||
return "net/Indyuce/mmocore";
|
return "mmocore";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user