id like to see a simple plugin that says Say welcome to the new player to everyone except the player who joined
im guessing your saying this to the people who is gonna make the plugin right?just saying it makes the threadStarter think that your saying that to him...he is asking for a plugin, not on how to make a plugin like that
I said it to both, threadstarter and developers. Perhaps he likes testing new stuff, and otherwise, a new developer would knew where to searh.
Take it a step further by making every player say welcome, AND making it look genuine See my signature for Welcome.
this is imposibble...hmmm, maybe only in my experience...i think you cant cancel what the server says to you, i think...? i dont think thats what he wants EDIT by Moderator: merged posts, please use the edit button instead of double posting.
@DomovoiButler It would just be done with a for loop sending the message to all the players except the new player rather than broadcasting the message.
yeah, i was thinking that too...but 1 problem, wouldn't it send twice? the original welcome message and the one on your for loop? EDIT: ah, maybe you can event.setJoinMessage(null); ? ...and then maybe it will not be sent to players?
@DomovoiButler Yeah, it would send the "derp has join the server" and then to all players except derp it would say "Everybody welcome derp to the server"
@Ultra_Colon @xandoriax Here it is: <Edit by Moderator: Redacted mediafire url> (untested but should work)
Could you just do a foreach loop of getOnlinePlayers() ? and then if the name is equal to the player who has joined then send them a different message much easier imo
@thehutch I just got all online players, put them into an arraylist, removed the player who was joining from the arraylist and sent the message to everybody in the arraylist.
No new players joined yet today. I'll let you know when I can. Edit: Is it welcoming my old players like they would be new ones. A bit annoying considering it might takes week before all the old players have joined once. It would be great if it could check in the players directory for existing players instead of handling the list by itself. Otherwise I think it works fine. Thanks again!
@Ultra_Colon Currently it does check the player directory does it happen even when your old player log off and log in again? I may of made a mistake, I will do some testing tonight
It's really simple. Code: String name = event.getPlayer().getName(); if(!new File(event.getPlayer().getWorld().getName() + "/players/" + name + ".dat").exists()){
@dbizzzle i want to be able to change the welcome message and i dont want the message to come up everytime a player joins the server :/
@xandoriax Ah yes, forgot about that, will fix that and add a config sometime within the next week (exams) Edit: You seam to be the only one having this problem, do you save your world in the default file?