Fix /waitwhat and /me

This commit is contained in:
Norbi Peti 2020-09-04 03:41:23 +02:00
parent 4d4448fca1
commit b483b7df0c
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56
3 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,6 @@
package buttondevteam.chat.commands;
import buttondevteam.lib.ChromaUtils;
import buttondevteam.lib.TBMCSystemChatEvent;
import buttondevteam.lib.chat.*;
@ -10,6 +11,6 @@ import buttondevteam.lib.chat.*;
public class MeCommand extends ICommand2MC {
@Command2.Subcommand
public void def(Command2MCSender sender, @Command2.TextArg String message) {
TBMCChatAPI.SendSystemMessage(sender.getChannel(), sender.getChannel().getRTR(sender.getPermCheck()), "§5* " + sender.getName() + " " + message, TBMCSystemChatEvent.BroadcastTarget.ALL);
TBMCChatAPI.SendSystemMessage(sender.getChannel(), sender.getChannel().getRTR(sender.getPermCheck()), "§5* " + ChromaUtils.getDisplayName(sender.getSender()) + " " + message, TBMCSystemChatEvent.BroadcastTarget.ALL);
}
}

View file

@ -67,7 +67,7 @@ public class AppendTextComponent extends Component<PluginMain> {
});
appendedText(conf).set("( ͡° ͜ʖ ͡°)");
});
map.put("ww", conf -> {
map.put("waitwhat", conf -> {
helpText(conf).set(new String[]{
"Wait what", //
"Wait what" //

View file

@ -30,6 +30,8 @@ commands:
description: Lenny face.
ftop:
description: Top respect.
me:
description: Me command with Chroma support.
author: NorbiPeti
depend:
- Essentials