Added /chatn and /speakn
This commit is contained in:
@@ -20,6 +20,14 @@ command chat {
|
|||||||
help A way to speak in normal chat with normal formatting if you have ACT or CGT on.;
|
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 {
|
command shrug {
|
||||||
[string:message...] {
|
[string:message...] {
|
||||||
perm utils.shrug;
|
perm utils.shrug;
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import net.nemez.chatapi.ChatAPI;
|
|||||||
|
|
||||||
@Commands(CommandHolderType.File)
|
@Commands(CommandHolderType.File)
|
||||||
@AutoRegisterListener
|
@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
|
public class Chat implements Module, Listener
|
||||||
{
|
{
|
||||||
private final Map<String, String> defaults = new HashMap<>();
|
private final Map<String, String> defaults = new HashMap<>();
|
||||||
@@ -80,6 +80,13 @@ public class Chat implements Module, Listener
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Command(hook = "chatn")
|
||||||
|
public boolean chatn(CommandSender sender, String name, String message)
|
||||||
|
{
|
||||||
|
broadcastFormatted("chat", sender, message, name);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
@Command(hook = "action")
|
@Command(hook = "action")
|
||||||
public boolean action(CommandSender sender, String message)
|
public boolean action(CommandSender sender, String message)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user