3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-09 13:00:05 +01:00
Dieser Commit ist enthalten in:
Jesse Boyd 2018-08-17 02:55:06 +10:00
Ursprung d85ad6e116
Commit c2a1fbf7cc
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 59F1DE6293AF6E1F

Datei anzeigen

@ -192,8 +192,10 @@ public class WorldEditPlugin extends JavaPlugin implements TabCompleter {
{ {
PluginDescriptionFile desc = getDescription(); PluginDescriptionFile desc = getDescription();
if (desc != null) { if (desc != null) {
desc = new PluginDescriptionFile("FastAsyncWorldEdit", desc.getVersion(), desc.getMain());
try { try {
Field nameField = PluginDescriptionFile.class.getDeclaredField("name");
nameField.setAccessible(true);
nameField.set(desc, "FastAsyncWorldEdit");
Field descriptionField = JavaPlugin.class.getDeclaredField("description"); Field descriptionField = JavaPlugin.class.getDeclaredField("description");
descriptionField.setAccessible(true); descriptionField.setAccessible(true);
descriptionField.set(this, desc); descriptionField.set(this, desc);