This commit is contained in:
rockyhawk64 2022-05-05 12:25:25 +10:00
parent 082e6cd924
commit a97337be43
4 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,4 @@
version: 3.17.4.2
version: 3.17.4.3
main: me.rockyhawk.commandpanels.CommandPanels
name: CommandPanels
author: RockyHawk

View File

@ -20,11 +20,11 @@ public class Commandpanelversion implements CommandExecutor {
//version command
String latestVersion = plugin.updater.getLatestVersion(false);
sender.sendMessage(plugin.tex.colour(plugin.tag));
sender.sendMessage(ChatColor.GREEN + "This Version " + ChatColor.GRAY + plugin.getDescription().getVersion());
sender.sendMessage(ChatColor.GREEN + "This Version " + ChatColor.GRAY + plugin.getDescription().getVersion());
sender.sendMessage(ChatColor.GREEN + "Latest Version " + ChatColor.GRAY + latestVersion);
sender.sendMessage(ChatColor.GRAY + "-------------------");
sender.sendMessage(ChatColor.GREEN + "Developer " + ChatColor.GRAY + "RockyHawk");
sender.sendMessage(ChatColor.GREEN + "Command " + ChatColor.GRAY + "/cp");
sender.sendMessage(ChatColor.GREEN + "Command " + ChatColor.GRAY + "/cp");
} else {
sender.sendMessage(plugin.tex.colour(plugin.tag + plugin.config.getString("config.format.perms")));
}

View File

@ -31,7 +31,9 @@ public class UtilsChestSortEvent implements Listener {
//If the ChestSort plugin triggers an event
if(e.getInventory().getType() == InventoryType.PLAYER){
for(int slot : plugin.hotbar.stationaryItems.get(e.getPlayer().getUniqueId()).list.keySet()){
e.setUnmovable(slot);
if(e.getInventory().getItem(slot) != null) {
e.setUnmovable(slot);
}
}
}
}

View File

@ -103,7 +103,7 @@ public class Updater implements Listener {
//the pluginFileName can only be obtained from the main class
public void autoUpdatePlugin(String pluginFileName){
if (Objects.requireNonNull(plugin.config.getString("updater.update-checks")).equalsIgnoreCase("true")) {
if (Objects.requireNonNull(plugin.config.getString("updater.update-checks")).equalsIgnoreCase("false")) {
return;
}