mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-22 09:08:03 +01:00
Addon data folder name change.
This commit is contained in:
parent
d3490a6f24
commit
92213f20c1
@ -108,7 +108,7 @@ public final class AddonsManager {
|
||||
loader = new AddonClassLoader(data, f, reader, this.getClass().getClassLoader());
|
||||
this.loader.add(loader);
|
||||
addon = loader.addon;
|
||||
addon.setDataFolder(new File(f.getParent(), f.getName().replace(".jar", "")));
|
||||
addon.setDataFolder(new File(f.getParent(), addon.getDescription().getName()));
|
||||
addon.setAddonFile(f);
|
||||
Bukkit.getPluginManager().callEvent(AddonEvent.builder().addon(addon).reason(AddonEvent.Reason.LOAD).build());
|
||||
this.addons.add(addon);
|
||||
|
Loading…
Reference in New Issue
Block a user