Clear players Chat

Discussion in 'Plugin Development' started by Eltarion, Nov 28, 2011.

Thread Status:
Not open for further replies.
  1. Offline


    Can someone tell me the way to clear the Players Chat?

    I want the following:

    I send something (player.sendmessage(....)),
    i clear the text in chat (so nothing is in the Chat),
    i send another player.sendmessage(...)

    so i actually only need a clear-command.

    Is such a comamnd available in bukkit?

    Thanks in advance
  2. Offline


    just do this:
    2. for(int i=0;i<20;i++)
    3. player.sendMessage("");
  3. Offline


    Hmm, okay, thanks :)

    Doesn't exist a method?

    If i use this the chat has his backcolor :/
    It doesn't look good..

    Are there other methods, which doesn't make the backcolor?
    (The grey/braun background behind the Text)
  4. Offline


    No, because the GUI is client side. It is possible with Spout, though.
  5. Offline


    And how exactly?

    I will google it tomorrow, now i have to sleep :D
Thread Status:
Not open for further replies.

Share This Page