diff --git a/luckprefix-modern/src/main/java/de/eztxm/luckprefix/LuckPrefix.java b/luckprefix-modern/src/main/java/de/eztxm/luckprefix/LuckPrefix.java index 1aae33f..7a9b0c0 100644 --- a/luckprefix-modern/src/main/java/de/eztxm/luckprefix/LuckPrefix.java +++ b/luckprefix-modern/src/main/java/de/eztxm/luckprefix/LuckPrefix.java @@ -57,7 +57,6 @@ public void onEnable() { groupListener = new GroupListener(); groupListener.onCreateGroup(); groupListener.onDeleteGroup(); - groupListener.onReloadGroup(); groupManager.loadGroups(); updateChecker = new UpdateChecker(getDescription().getVersion()); if (!updateChecker.latestVersion()) { diff --git a/luckprefix-modern/src/main/java/de/eztxm/luckprefix/listener/GroupListener.java b/luckprefix-modern/src/main/java/de/eztxm/luckprefix/listener/GroupListener.java index f167679..80b1d4c 100644 --- a/luckprefix-modern/src/main/java/de/eztxm/luckprefix/listener/GroupListener.java +++ b/luckprefix-modern/src/main/java/de/eztxm/luckprefix/listener/GroupListener.java @@ -3,7 +3,6 @@ import de.eztxm.luckprefix.LuckPrefix; import net.luckperms.api.event.EventBus; import net.luckperms.api.event.group.GroupCreateEvent; -import net.luckperms.api.event.group.GroupDataRecalculateEvent; import net.luckperms.api.event.group.GroupDeleteEvent; public class GroupListener { @@ -13,14 +12,6 @@ public void onCreateGroup() { eventBus.subscribe(GroupCreateEvent.class, event -> LuckPrefix.getInstance().getGroupManager().createGroup(event.getGroup().getName())); } - public void onReloadGroup() { - EventBus eventBus = LuckPrefix.getInstance().getLuckPerms().getEventBus(); - eventBus.subscribe(GroupDataRecalculateEvent.class, event -> { - LuckPrefix.getInstance().getGroupManager().deleteGroup(event.getGroup().getName()); - LuckPrefix.getInstance().getGroupManager().createGroup(event.getGroup().getName()); - }); - } - public void onDeleteGroup() { EventBus eventBus = LuckPrefix.getInstance().getLuckPerms().getEventBus(); eventBus.subscribe(GroupDeleteEvent.class, event -> LuckPrefix.getInstance().getGroupManager().deleteGroup(event.getGroupName()));