Skip to content

Commit

Permalink
remove temporary reloadGroup event from LuckPerms
Browse files Browse the repository at this point in the history
  • Loading branch information
ezTxmMC committed Aug 14, 2024
1 parent fe143e4 commit a9c8a94
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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()));
Expand Down

0 comments on commit a9c8a94

Please sign in to comment.