add hello
This commit is contained in:
parent
1795eea74a
commit
cbccbf2780
1 changed files with 7 additions and 0 deletions
|
@ -40,6 +40,13 @@ public class TrustedPlugin extends PlayersPlugin.PlayerListener {
|
|||
public void playerJoined (MutablePlayerListEntry target) {
|
||||
if (!trusted.contains(target.profile().getName())) return;
|
||||
|
||||
bot.chat().tellraw(
|
||||
Component.empty()
|
||||
.append(Component.text("Hello, ").color(NamedTextColor.GREEN))
|
||||
.append(Component.text(target.profile().getName()).color(NamedTextColor.GOLD))
|
||||
.append(Component.text("!").color(NamedTextColor.GREEN))
|
||||
);
|
||||
|
||||
broadcast(
|
||||
Component.translatable(
|
||||
"Trusted player %s is now online",
|
||||
|
|
Loading…
Reference in a new issue