Plugin that removes messages

Discussion in 'Archived: Plugin Requests' started by leet4044, Mar 3, 2013.

  1. Offline

    leet4044

    Is there a plugin that removes bukkit messages, like join/leave/death messages and you can also or set your own messages for the join/leave? Please tell me if there is one
     
  2. Offline

    BajanAmerican

    You cannot get rid of Bukkit Messages, but you can set your own messages for the join/leave
     
  3. Offline

    UltiFix

    could you please tell us how?
     
  4. Offline

    leet4044

  5. Offline

    BajanAmerican

    Do you want it in code or do you not know that kind of stuff?
     
  6. Offline

    leet4044

    well i dont think hes a java coder if thats what you mean...
     
  7. Offline

    BajanAmerican

    Oh well I never delt with that kind of stuff besides on the player join/leave. I can make that in like two seconds lol. What do you want it to say?
     
  8. Offline

    leet4044

    I want it to say only when an admin/op joins "&5Name &8Joins the server."

    also when they leave plox <3

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

    BajanAmerican

    So you don't want anything to happen when a non-op joins the server but you want a message when an admin/op join the server? That's what I'm getting at haha
     
  10. Offline

    leet4044

    Yes, because a large server if someone joins, would spam the chat, I mean i have a plugin that will display only when new players join first but after that it wont display.
     
  11. Offline

    BajanAmerican

    Code:
        @EventHandler
        public void onPlayerJoinEvent(PlayerJoinEvent event){
            for(Player player : Bukkit.getOnlinePlayers()){
                if(player.isOp()){
                    event.setJoinMessage("Welcome " + player.getDisplayName() + "To The Server!");
                }else{
                    event.setJoinMessage(null);
                }
            }
    Like this?

    And Same thing but change "Join" to "Leave"

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

    leet4044

    Lol, Now what do i do with it? :p
     
  13. Offline

    BajanAmerican

    Wait, do you want me to make the physical .jar or did you want the code to put in?
     
  14. Offline

    leet4044

    I just want a jar to drop in my servers host lolol

    Ik this is offtopic but could you like be a personaly coder? :p

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

    BajanAmerican

    Yeah I would be interested! Can you give me until like 9 EST to make the plugin? I have school stuff to do :/
     
  16. Offline

    JellybeanPrince

  17. Offline

    leet4044

    Yeah no problem, Could you both add me on skype? <3: Leet4044
     
  18. Offline

    UltiFix

    could you give me that plugin to :)
     
  19. Offline

    Wolf7115

    I totally just ninja'd this plugin. Here you go: http://dl.dropbox.com/u/39814665/HideLogin.jar

    I made it so that the login messages will only appear if someone is OP or if they have the permission "HideLogin.display" for people who you want to display but you don't want them to be OP.

    Death messages are also totally disabled.
     
    DomIsAmazing27 likes this.
  20. Offline

    leet4044

    Lol "Ninja'd" I like that and thanks! Its just what I wanted.
     
  21. Offline

    zack6849

    that doesnt make much sense, why would you loop through all online players?

    Code:
        @EventHandler
        public void onPlayerJoinEvent(PlayerJoinEvent event){
                Player player = event.getPlayer();
                if(player.isOp()){
                    event.setJoinMessage(String.format("§5%s§8has joined the server!", player.getName()));
                }else{
                  if(!player.hasPlayedbefore()){
                      event.setJoinMessage("Welcome " + player.getDisplayName() + "To The Server!");
                  }else{
                    event.setJoinMessage(null);
                  }
            }
    }
     
  22. Offline

    leet4044

    What is you guys talking about? xD Im new to java coding and i've made only a test plugin wich doesnt even work xD
     
  23. Offline

    BajanAmerican

    I realized that after I said that actually....lol
     
  24. Offline

    MgMaor

  25. Offline

    kukelekuuk00


    This doesn't quite do what he wants, and zack already provided a piece of code that does what he wants. (not to mention the fact that someone already provided a jar)
     

Share This Page