How to use AsyncPlayerChatEvent?

  • Thread starter Thread starter /u/EpicBuilderHD
  • Start date Start date

/u/EpicBuilderHD

Guest
Member
Hey, I've tried to make my 3rd Plugin ever and I was wondering how to modify the Player's name in chat so that these brackets <> get removed.



I've tried using this:

public final class Status extends JavaPlugin implements Listener {

@Override public void onEnable() { this.getCommand("status").setExecutor(new StatusCommand()); this.getCommand("spawn").setExecutor(new SpawnCommand()); } @EventHandler public void onPlayerJoin(PlayerJoinEvent join) { join.getPlayer().chat("/status clear"); join.setJoinMessage("§aWillkommen auf dem Server!"); } @EventHandler public void onPlayerChat(AsyncPlayerChatEvent e) { e.setFormat("%s§8:§7 %s"); } }

Why won't it modify the name in chat?

Thanks in advance :)

submitted by /u/EpicBuilderHD
[link] [comments]

Continue reading...

free plugins
minecraft paid for free
spigotmc
SpigotMC
free minecraft paid plugins
free minecraft plugins
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
minecraft plugins
xenforo leaked
xenforo for free
xenforo addons
 
Top