This repository was archived by the owner on May 10, 2024. It is now read-only.
Open
Conversation
VideoGameSmash12
suggested changes
Apr 5, 2023
| { | ||
| tryAddAdmin(ResultSetProvider.fromRow(adminSet)); | ||
| row.set(row.get() + 1); | ||
| } catch (Throwable e) |
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
suggested changes
Apr 11, 2023
| return; | ||
| } | ||
|
|
||
| if (result != null && !result.wasSuccessful()) { |
| plugin.dc.syncRoles(admin, plugin.pl.getData(admin.getName()).getDiscordID()); | ||
| } | ||
| Hierarchy.getHierarchy() | ||
| .promoteUser(Hierarchy.getHierarchy().admin(), player) |
| { | ||
| FLog.severe("Failed to promote " | ||
| + player.getName() | ||
| + " to the next rank"); |
| }, () -> msgNew("<red>Failed to promote <player> to the next rank.", player(player))); | ||
| } | ||
| }); | ||
|
|
| @@ -173,78 +183,86 @@ public boolean run(CommandSender sender, Player playerSender, Command cmd, Strin | |||
|
|
|||
| return true; | |||
| } | |||
|
|
||
| private Map<String, Command> getFallbackCommands() { | ||
| final Map<String, Command> fallbackCommands = new HashMap<>(); | ||
| for (final Map.Entry<String, Command> entry : Bukkit.getCommandMap().getKnownCommands().entrySet()) { |
| 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)) { |
| { | ||
| if (!manager.isLoaded(name) || !trackSet.contains(manager.getTrack(name))) | ||
| { | ||
| return manager.createAndLoadTrack(name).thenApplyAsync(a -> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.