From c2a1fbf7cca1e63cbe677b50a570e77d4cbab6db Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Fri, 17 Aug 2018 02:55:06 +1000 Subject: [PATCH] Fixes #1077 --- .../main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java index 3c40628f0..149c3274c 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java @@ -192,8 +192,10 @@ public class WorldEditPlugin extends JavaPlugin implements TabCompleter { { PluginDescriptionFile desc = getDescription(); if (desc != null) { - desc = new PluginDescriptionFile("FastAsyncWorldEdit", desc.getVersion(), desc.getMain()); try { + Field nameField = PluginDescriptionFile.class.getDeclaredField("name"); + nameField.setAccessible(true); + nameField.set(desc, "FastAsyncWorldEdit"); Field descriptionField = JavaPlugin.class.getDeclaredField("description"); descriptionField.setAccessible(true); descriptionField.set(this, desc);