Use IXL instead of MythicMobs in relaod message

This commit is contained in:
Daniel Saukel 2018-08-05 01:57:29 +02:00
parent bbe18fd15e
commit 405550b9c4
2 changed files with 8 additions and 8 deletions

View File

@ -85,9 +85,9 @@ public class ReloadCommand extends DRECommand {
if (plugins.getPlugin("Vault") != null) { if (plugins.getPlugin("Vault") != null) {
vault = plugins.getPlugin("Vault").getDescription().getVersion(); vault = plugins.getPlugin("Vault").getDescription().getVersion();
} }
String mythicMobs = ""; String ixl = "";
if (plugins.getPlugin("MythicMobs") != null) { if (plugins.getPlugin("ItemsXL") != null) {
mythicMobs = plugins.getPlugin("MythicMobs").getDescription().getVersion(); ixl = plugins.getPlugin("ItemsXL").getDescription().getVersion();
} }
plugin.onDisable(); plugin.onDisable();
@ -97,7 +97,7 @@ public class ReloadCommand extends DRECommand {
MessageUtil.sendPluginTag(sender, plugin); MessageUtil.sendPluginTag(sender, plugin);
MessageUtil.sendCenteredMessage(sender, DMessage.CMD_RELOAD_DONE.getMessage()); MessageUtil.sendCenteredMessage(sender, DMessage.CMD_RELOAD_DONE.getMessage());
MessageUtil.sendCenteredMessage(sender, DMessage.CMD_MAIN_LOADED.getMessage(String.valueOf(maps), String.valueOf(dungeons), String.valueOf(loaded), String.valueOf(players))); MessageUtil.sendCenteredMessage(sender, DMessage.CMD_MAIN_LOADED.getMessage(String.valueOf(maps), String.valueOf(dungeons), String.valueOf(loaded), String.valueOf(players)));
MessageUtil.sendCenteredMessage(sender, DMessage.CMD_MAIN_COMPATIBILITY.getMessage(String.valueOf(internals), vault, mythicMobs)); MessageUtil.sendCenteredMessage(sender, DMessage.CMD_MAIN_COMPATIBILITY.getMessage(String.valueOf(internals), vault, ixl));
} }
} }

View File

@ -72,9 +72,9 @@ public class ReloadCommandNoSpigot extends DRECommand {
if (plugins.getPlugin("Vault") != null) { if (plugins.getPlugin("Vault") != null) {
vault = plugins.getPlugin("Vault").getDescription().getVersion(); vault = plugins.getPlugin("Vault").getDescription().getVersion();
} }
String mythicMobs = ""; String ixl = "";
if (plugins.getPlugin("MythicMobs") != null) { if (plugins.getPlugin("ItemsXL") != null) {
mythicMobs = plugins.getPlugin("MythicMobs").getDescription().getVersion(); ixl = plugins.getPlugin("ItemsXL").getDescription().getVersion();
} }
plugin.onDisable(); plugin.onDisable();
@ -84,7 +84,7 @@ public class ReloadCommandNoSpigot extends DRECommand {
MessageUtil.sendPluginTag(sender, plugin); MessageUtil.sendPluginTag(sender, plugin);
MessageUtil.sendCenteredMessage(sender, DMessage.CMD_RELOAD_DONE.getMessage()); MessageUtil.sendCenteredMessage(sender, DMessage.CMD_RELOAD_DONE.getMessage());
MessageUtil.sendCenteredMessage(sender, DMessage.CMD_MAIN_LOADED.getMessage(String.valueOf(maps), String.valueOf(dungeons), String.valueOf(loaded), String.valueOf(players))); MessageUtil.sendCenteredMessage(sender, DMessage.CMD_MAIN_LOADED.getMessage(String.valueOf(maps), String.valueOf(dungeons), String.valueOf(loaded), String.valueOf(players)));
MessageUtil.sendCenteredMessage(sender, DMessage.CMD_MAIN_COMPATIBILITY.getMessage(String.valueOf(internals), vault, mythicMobs)); MessageUtil.sendCenteredMessage(sender, DMessage.CMD_MAIN_COMPATIBILITY.getMessage(String.valueOf(internals), vault, ixl));
} }
} }