forked from Upstream/CommandPanels
3.17.4.3
This commit is contained in:
parent
082e6cd924
commit
a97337be43
@ -1,4 +1,4 @@
|
|||||||
version: 3.17.4.2
|
version: 3.17.4.3
|
||||||
main: me.rockyhawk.commandpanels.CommandPanels
|
main: me.rockyhawk.commandpanels.CommandPanels
|
||||||
name: CommandPanels
|
name: CommandPanels
|
||||||
author: RockyHawk
|
author: RockyHawk
|
||||||
|
@ -20,11 +20,11 @@ public class Commandpanelversion implements CommandExecutor {
|
|||||||
//version command
|
//version command
|
||||||
String latestVersion = plugin.updater.getLatestVersion(false);
|
String latestVersion = plugin.updater.getLatestVersion(false);
|
||||||
sender.sendMessage(plugin.tex.colour(plugin.tag));
|
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.GREEN + "Latest Version " + ChatColor.GRAY + latestVersion);
|
||||||
sender.sendMessage(ChatColor.GRAY + "-------------------");
|
sender.sendMessage(ChatColor.GRAY + "-------------------");
|
||||||
sender.sendMessage(ChatColor.GREEN + "Developer " + ChatColor.GRAY + "RockyHawk");
|
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 {
|
} else {
|
||||||
sender.sendMessage(plugin.tex.colour(plugin.tag + plugin.config.getString("config.format.perms")));
|
sender.sendMessage(plugin.tex.colour(plugin.tag + plugin.config.getString("config.format.perms")));
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,9 @@ public class UtilsChestSortEvent implements Listener {
|
|||||||
//If the ChestSort plugin triggers an event
|
//If the ChestSort plugin triggers an event
|
||||||
if(e.getInventory().getType() == InventoryType.PLAYER){
|
if(e.getInventory().getType() == InventoryType.PLAYER){
|
||||||
for(int slot : plugin.hotbar.stationaryItems.get(e.getPlayer().getUniqueId()).list.keySet()){
|
for(int slot : plugin.hotbar.stationaryItems.get(e.getPlayer().getUniqueId()).list.keySet()){
|
||||||
e.setUnmovable(slot);
|
if(e.getInventory().getItem(slot) != null) {
|
||||||
|
e.setUnmovable(slot);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -103,7 +103,7 @@ public class Updater implements Listener {
|
|||||||
|
|
||||||
//the pluginFileName can only be obtained from the main class
|
//the pluginFileName can only be obtained from the main class
|
||||||
public void autoUpdatePlugin(String pluginFileName){
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user