Skip to content

Commit

Permalink
Various minor fixes,
Browse files Browse the repository at this point in the history
Removal of the bundle workaround
  • Loading branch information
TechnicallyCoded committed Aug 18, 2021
1 parent 83544a8 commit 30b257f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void bStats() {
Metrics metrics = new Metrics(this, 9437);

if (ConfigData.isbStatsEnabled())
getLogger().info(MessageData.getPluginPrefix() + "bStats are enabled");
getPluginLogger().info(MessageData.getPluginPrefix() + "bStats are enabled");

metrics.addCustomChart(new SimplePie("database_type", () -> ConfigData.getSaveType().getName()));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public boolean saveConfig() {
}

private static String pluginPrefix;
private static String adminAlerts = ChatColor.RED + "Admin alert: Bundles in 1.17.x are not saved in backups due to this item being incompatible with the current version of spigot.";
private static String adminAlerts = ChatColor.RED + "Admin Only Alert: If bundles in 1.17 are causing errors when saved in backups please update your server to a newer release of the server software you are using. This issue was corrected in a recent patch of spigot and has already made it's way to paper (and probably most forks of paper)";
private static String noPermission;
private static String error;
private static String errorInventory = "You cannot access this backup due to an error. The backup was likely generated on another Minecraft server version and a Material ID has now changed.";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ public static String toBase64(ItemStack[] contents) {

for (ItemStack stack : contents) {
// TODO: remove bundle error saving workaround
if (stack != null && useBundleWorkaround && stack.getType().equals(Material.BUNDLE))
/*if (stack != null && useBundleWorkaround && stack.getType().equals(Material.BUNDLE))
{
dataOutput.writeObject(null);
continue;
}
}*/
dataOutput.writeObject(stack);
}
dataOutput.close();
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ permissions:
inventoryrollbackplus.forcebackup: true
inventoryrollbackplus.version: true
inventoryrollbackplus.help: true
inventoryrollbackplus.adminalerts: true
default: op
inventoryrollbackplus.cmd:
description: Allows InventoryRollback commands to work.
Expand Down

0 comments on commit 30b257f

Please sign in to comment.