Archived
0

Added /chatn and /speakn

This commit is contained in:
Minenash
2018-09-23 23:05:58 -04:00
parent a306f10d51
commit b2a67e26cb
2 changed files with 16 additions and 1 deletions

View File

@@ -20,6 +20,14 @@ command chat {
help A way to speak in normal chat with normal formatting if you have ACT or CGT on.;
}
}
command chatn {
alias speakn;
[string:name] [string:message...] {
perm utils.chatn;
run chatn name message;
help A way to speak in normal chat with normal formatting for console users.;
}
}
command shrug {
[string:message...] {
perm utils.shrug;

View File

@@ -28,7 +28,7 @@ import net.nemez.chatapi.ChatAPI;
@Commands(CommandHolderType.File)
@AutoRegisterListener
@Version(major = 4, minor = 1, revision = 0, compatible = 4)
@Version(major = 4, minor = 1, revision = 1, compatible = 4)
public class Chat implements Module, Listener
{
private final Map<String, String> defaults = new HashMap<>();
@@ -80,6 +80,13 @@ public class Chat implements Module, Listener
return true;
}
@Command(hook = "chatn")
public boolean chatn(CommandSender sender, String name, String message)
{
broadcastFormatted("chat", sender, message, name);
return true;
}
@Command(hook = "action")
public boolean action(CommandSender sender, String message)
{