Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void kick(CommandSender sender, Player player, @Greedy String reason, @Sw

if (!silent)
{
adminAction(sender, reason == null ? "<aqua>Kicking <player>" : "<aqua>Kicking <player> - Reason: <reason>",
adminAction(sender, reason == null ? "<red>Kicking <player>" : "<red>Kicking <player> - Reason: <reason>",
Placeholder.unparsed("player", player.getName()),
MessageUtils.parsed("reason", reason != null ? reason : ""));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class Command_lockup extends FCommand
@Subcommand("all")
public void lockAll(CommandSender sender)
{
adminAction(sender, "<aqua>Locking up all players");
adminAction(sender, "<red>Locking up all players");

server().getOnlinePlayers().forEach(this::startLockup);

Expand Down Expand Up @@ -52,7 +52,7 @@ public void toggle(CommandSender sender, String name, String state)

if (state.equalsIgnoreCase("on"))
{
adminAction(sender, "<aqua>Locking up <player>", Placeholder.unparsed("player", player.getName()));
adminAction(sender, "<red>Locking up <player>", Placeholder.unparsed("player", player.getName()));
startLockup(player);
msg(sender, "<gray>Locked up <player>.", Placeholder.unparsed("player", player.getName()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,10 @@ public void smite(CommandSender sender, Player player, @Greedy String reason)

if (reason != null)
msg(
player,
// We take advantage of the String blocks newline byte here because it's encoded by MiniMessage and preserved in display.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not intuitive to most people so I would please leave this in place or move it to a JavaDoc on the method

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then only people looking at this file will see the comment; I can put it back but imo it would be better to have this info available somewhere people would actually see it

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have a javadoc on the method itself in MessageUtils I think.

player,
"""
You have been smitten.
Reason: <yellow><reason>
<red>You have been smitten.
<red>Reason: <yellow><reason>\
""",
MessageUtils.parsed("reason", reason)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void list(CommandSender sender)
@Subcommand("purge")
public void purge(CommandSender sender)
{
adminAction(sender, "<aqua>Unmuting all players");
adminAction(sender, "<red>Unmuting all players");

final List<FPlayer> players = server().getOnlinePlayers()
.stream()
Expand Down Expand Up @@ -96,7 +96,7 @@ public void mutePlayerWithReason(CommandSender sender, Player player, @Greedy St

if (fplayer.isMuted())
{
adminAction(sender, "<aqua>Unmuting <player>", Placeholder.unparsed("player", player.getName()));
adminAction(sender, "<red>Unmuting <player>", Placeholder.unparsed("player", player.getName()));
fplayer.setMuted(false);
msg(player, "<green>You have been unmuted.");
}
Expand Down