-
Notifications
You must be signed in to change notification settings - Fork 9
Officially integrate the LuckPerms API into TFM #315
base: RELEASE-2023.03
Are you sure you want to change the base?
Conversation
Moved command loading into a runnable that will execute on the first server tick. This way, we can ensure that all the plugins are loaded before we load our commands, so TFD4J and Shop can both have their respective commands loaded in.
ghost
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, although there seem to be a few style violations.
| return; | ||
| } | ||
|
|
||
| if (result == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allman's code style
| HierarchyProvider.ADMIN.getHierarchy() | ||
| .promoteUser(GroupProvider.getUser(player)) | ||
| .whenComplete((result, ex) -> { | ||
| if (ex != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allman's code style
| FUtil.adminAction(sender.getName(), "Promoting " + player.getName() + " to the next rank", true); | ||
| HierarchyProvider.ADMIN.getHierarchy() | ||
| .promoteUser(GroupProvider.getUser(player)) | ||
| .whenComplete((result, ex) -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allman's code style
| { | ||
| msgNew("<red>Failed to promote <player> to the next rank.", player(player)); | ||
| return; | ||
| } else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allman's code style
| }); | ||
| } | ||
|
|
||
| private Map<String, Command> getFallbackCommands() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allman's code style
|
|
||
| private Map<String, Command> getFallbackCommands() { | ||
| final Map<String, Command> fallbackCommands = new HashMap<>(); | ||
| for (final Map.Entry<String, Command> entry : Bukkit.getCommandMap().getKnownCommands().entrySet()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allman's code style
| private Map<String, Command> getFallbackCommands() { | ||
| final Map<String, Command> fallbackCommands = new HashMap<>(); | ||
| for (final Map.Entry<String, Command> entry : Bukkit.getCommandMap().getKnownCommands().entrySet()) { | ||
| if (!(entry.getValue() instanceof PluginIdentifiableCommand)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allman's code style
| { | ||
| if (!manager.isLoaded(name) || !trackSet.contains(manager.getTrack(name))) | ||
| { | ||
| return manager.createAndLoadTrack(name).thenApplyAsync(a -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allman's code style
| if (plugin.al.isAdmin(player) || data.isMasterBuilder() || FUtil.isDeveloper(player)) | ||
| { | ||
| player.playerListName(Component.text(player.getName()).color(display.getColor())); | ||
| } else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allman's code style
Build has a critical error where sql data is being interpreted incorrectly which is odd considering no sql changes were made.
This covers quite a bit of ground, namely: