Skip to content

Commit

Permalink
Fix small bugs (provide correct URL to version release on GitHub; do …
Browse files Browse the repository at this point in the history
…not cause ConcurrentModificationException when updating mutes on paper; remove whitelist option from command syntax)
  • Loading branch information
JvstvsHD committed Sep 14, 2024
1 parent 4bd649d commit c4d7a6a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ hangarPublish {
if (!rootProject.isRelease) {
changelog.set(changelogMessage())
} else {
changelog.set("Changes will be provided shortly.\nComplete changelog can be found on GitHub: https://www.github.com/JvstvsHD/necrify/releases/tag/v${rootProject.version.toString()}")
changelog.set("Changes will be provided shortly.\nComplete changelog can be found on GitHub: https://www.github.com/JvstvsHD/necrify/releases/tag/v${rootProject.version}")
}
platforms {
register(Platforms.PAPER) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,11 @@ public void reloadCommand(NecrifyUser sender) {
}
}

@Command("necrify whitelist")
@Command("necrify whitelist [option]")
@Permission(value = {"necrify.command.whitelist", "necrify.admin"}, mode = Permission.Mode.ANY_OF)
public void whitelistCommand(
NecrifyUser sender,
@Argument(value = "option", description = "Option to retrieve the whitelist's status", suggestions = "suggestWhitelistCommandOptions") @Default("status") String option
@Argument(value = "option", description = "Option to retrieve the whitelist's status") @Default("status") String option
) {
var whitelist = plugin.isWhitelistActive();
var activeState = whitelist ? "active" : "inactive";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void onPluginMessageReceived(@NotNull String channel, @NotNull Player pla
Updater.updateInformation(plugin.getSLF4JLogger());
}
if (data.getType() == MuteData.RESET) {
plugin.cachedMutes().stream().filter(muteInformation -> muteInformation.getPlayer().getUniqueId().equals(data.getUuid())).forEach(plugin.cachedMutes()::remove);
plugin.cachedMutes().removeIf(muteInformation -> muteInformation.getPlayer().getUniqueId().equals(data.getUuid()));
return;
}
var mute = MuteInformation.from(data);
Expand Down

0 comments on commit c4d7a6a

Please sign in to comment.