Lots of fixes and cool shit

- Fixes bug that caused login messages to not show properly
- Fixes bug that caused names to now show properly in tab
- Adds the ability for commands to be ignored if plugins that they require aren't present
- Fixes bug that caused the admin list to fail to load properly
- Fixes bug that caused tags to not show properly
- Login messages now use MiniMessage
This commit is contained in:
Video
2023-03-30 23:14:57 -06:00
parent 74408b85bf
commit f53ba1bd76
34 changed files with 139 additions and 56 deletions

View File

@ -200,7 +200,7 @@ public class Shop extends FreedomService implements ShoppeCommons
ItemStack icon = new ItemStack(Material.NAME_TAG);
ItemMeta meta = icon.getItemMeta();
assert meta != null;
meta.setDisplayName(FUtil.colorize(plugin.rm.craftLoginMessage(player, loginMessage)));
meta.displayName(plugin.rm.craftLoginMessage(player, loginMessage));
icon.setItemMeta(meta);
gui.setItem(slot, icon);
slot++;
@ -423,7 +423,8 @@ public class Shop extends FreedomService implements ShoppeCommons
String message = ConfigEntry.SHOP_LOGIN_MESSAGES.getStringList().get(slot);
data.setLoginMessage(message);
plugin.pl.save(data);
player.sendMessage(ChatColor.GREEN + "Your login message is now the following:\n" + plugin.rm.craftLoginMessage(player, message));
player.sendMessage(ChatColor.GREEN + "Your login message is now the following:");
player.sendMessage(plugin.rm.craftLoginMessage(player, message));
}
player.closeInventory();