Invisible to console

Discussion in 'Plugin Development' started by goodstuff20, May 11, 2013.

Thread Status:
Not open for further replies.
  1. Hiya guys,

    Wanna know if it is possible to set the text a player writes or a command invisible to the console (because if you tipp gm 1 it says your gamemode has been changes - but not in the console)

    Thx folks

    Cheers
     
  2. Offline

    CubieX

    As this text is displayed in the chat, transfering it to the console should be possible by using the PlayerCommandPreproccessEvent to catch the command from the player and after that the AsyncPlayerChatEvent to read and pipe the message to console.
    But I don't know how to make sure that the message in chat is actually the reaction to the previous command.
    Perharps checking if the sender of the chat message is not a player will work.
     
  3. ok thx - how can you easily do new lines (that tones of space comes in the console - spam) /n doesent work so well - thx
     
  4. Offline

    CubieX

    I guess you'll have to make a new log entry for every commmand info text you want to send to console.
    But why would you do something other than that?
     
  5. Offline

    Compressions

Thread Status:
Not open for further replies.

Share This Page