Is there anyway to remove gamemode messages?

Discussion in 'Plugin Development' started by Vinceguy1, Apr 22, 2012.

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

    Vinceguy1

    Is there any way for when a player changes there gamemode to remove the default message that says "Your gamemode has been changed"
     
  2. Offline

    SirTyler

    Write your own game mode changing plugin
     
  3. Offline

    Vinceguy1

    I did, but is there a way to get rid of the default message
     
  4. Offline

    messageofdeath

    you would have to modify the craftbukkit api...
     
  5. Offline

    Vinceguy1

    So there is no way to do it like there is the death messages :( aww
     
  6. Offline

    messageofdeath

    correct. Then if people want to download your plugin they have to download that to. Most owners don't like doing it.
     
    Tim Visee likes this.
  7. Offline

    Tim Visee

    I also asked myself if I could get rid of them but I can't find any easy solution too. Maybe they will add a 'setShowMessage(false)' later..
     
  8. Offline

    acuddlyheadcrab

    I made a proof of concept mod that does this. I don't know if it still works, but it's here
     
  9. Offline

    JPG2000

    Tim Visee The Gamemode message is client side.
     
  10. Offline

    pope_on_dope

    no it's not. it's compiled with CraftBukkit's jar file. you can maybe listen for PlayerGameModeChangeEvent, cancel it, then set the game mode manually, that might cancel the message.
     
  11. Offline

    Samthelord1

    Just over a year late.
     
  12. Offline

    JPG2000

    Samthelord1 Lol.

    pope_on_dope No, because in my custom plugin when ever i manually change the GameMode it still shows the message.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  13. Offline

    fanaticmw2

    The gamemode message actually is handled clientside.
     
  14. Offline

    pope_on_dope

    go into the java docs and show me -.-
     
  15. Offline

    ZeusAllMighty11


    The javadocs don't show explainations for every single method in Bukkit +/ Craftbukkit. Therefore, there is nothing to show. This is handled client-side.
     
    fromgate likes this.
  16. Offline

    pope_on_dope

    even if it is, many higher-class servers have the messages disabled. they're not alternate commands either, good old vanilla /gamemode 1
     
  17. Offline

    foodyling

    pope_on_dope Give us an example of these 'higher-class' servers who can disable such messages.
     
  18. Offline

    pope_on_dope

    Shotbow Network foodyling watch one of the administrators streams some times, you'll see it's the vanilla command with a different resulting message
     
  19. Offline

    foodyling

  20. Offline

    rsod

    Message is client side.
     
  21. use a resource pack to provide a translation without the gamemode changed message, (you only see a empty line)
     
  22. Offline

    Tim Visee

    I think the only possible way without client modifications like mods or resource packs is to re-send all the chat send to the player. I think the player's chat history is about 100 (100 is probably wrong!) chat lines. So if you resend those 100 lines at once the line telling the game mode was changed will dissapear. There's an easy way to keep track of the messages send to a player by using the ProtocolLib. Simply create a listener for the ProtocolLib that keeps track of the messages send. Then create a manager class (or how you'd like to call it) that stores the chat history and is able to resend all the messages (I think sending the messages through the ProtocolLib is the best way to do it, but Player.sendMessage(String msg); should be fine too).

    So yeah I personally think this is the way to do it, I've used this method a while ago in a Bukkit mini-game plugin.

    Btw, to make the usage of ProtocolLib easier you can use PackatWrapper, made by the same developer which is a wrapper for ProtocolLib. Everything is explained on the ProtocolLib pages.

    Hope this helps,
    Tim Visée
     
  23. Offline

    pasow

    I know this thread is dead, I just wanted to prove that even the ShotBow Network can't fix this issue:
    [​IMG]
     
  24. Offline

    Garris0n

    Of course they can't, it's impossible.
     
Thread Status:
Not open for further replies.

Share This Page