Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
add message for mute/unmute command. close #8
Browse files Browse the repository at this point in the history
  • Loading branch information
cyilin committed Jun 22, 2016
1 parent c72a76f commit 248e897
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/cat/nyaa/HamsterEcoHelper/CommandHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,15 @@ public static void version(CommandSender sender, Arguments args, HamsterEcoHelpe
}

@SubCommand(value = "mute", permission = "heh.mute")
public static void ignore(CommandSender sender, Arguments args, HamsterEcoHelper plugin) {
public static void mute(CommandSender sender, Arguments args, HamsterEcoHelper plugin) {
Mute.add(asPlayer(sender));
msg(sender,"user.info.mute");
}

@SubCommand(value = "unmute", permission = "heh.mute")
public static void unignore(CommandSender sender, Arguments args, HamsterEcoHelper plugin) {
public static void unmute(CommandSender sender, Arguments args, HamsterEcoHelper plugin) {
Mute.remove(asPlayer(sender));
msg(sender,"user.info.unmute");
}

public static Player asPlayer(CommandSender target) {
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/lang/en_US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ user:
next_page: "Next page"
command_complete: "Command Executed!"
has_temporary_storage: "You have item in temporary storage. Acquire with '/heh retrieve'"
mute: "You will no longer receive this broadcast. Use '/heh unmute' to unmute"
unmute: "Unmute success."
error:
bad_command: "Wrong command: %s"
not_int: "Not a valid integer"
Expand Down

0 comments on commit 248e897

Please sign in to comment.