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
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?
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.
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
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.
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.
I just want a jar to drop in my servers host lolol Ik this is offtopic but could you like be a personaly coder? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Yeah I would be interested! Can you give me until like 9 EST to make the plugin? I have school stuff to do :/
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.
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); } } }
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
Code: @EventHandler public void onPlayerJoin(PlayerJoinEvent e){ Player p = e.getPlayer(); e.setJoinMessage(ChatColor.GOLD + p.getName() + "joined the server!"); } jar: http://www.2shared.com/file/TnIL26kT/JoinLeave.html
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)