mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-16 17:16:11 +00:00
Fixes #1077
This commit is contained in:
parent
d85ad6e116
commit
c2a1fbf7cc
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user