[REQ] a welcome message

Discussion in 'Archived: Plugin Requests' started by xandoriax, Nov 18, 2011.

  1. Offline

    xandoriax

    id like to see a simple plugin that says Say welcome to the new player to everyone except the player who joined :)
     
  2. Offline

    se1by

    take a look on playerListener and the Join Event :)
     
  3. Offline

    DomovoiButler

    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
     
  4. Offline

    se1by

    I said it to both, threadstarter and developers.
    Perhaps he likes testing new stuff, and otherwise, a new developer would knew where to searh.
     
  5. Offline

    pyraetos

    Take it a step further by making every player say welcome, AND making it look genuine ;)
    See my signature for Welcome.
     
  6. Offline

    DomovoiButler

    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.
     
    Last edited by a moderator: May 21, 2016
  7. Offline

    dbizzzle

    @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.
     
  8. Offline

    DomovoiButler

    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?
     
  9. Offline

    dbizzzle

    @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"
     
  10. Offline

    xandoriax

    That is exactly what i want :)
     
  11. Offline

    Ultra_Colon

    I have been looking for this everywhere.
     
  12. Offline

    dbizzzle

    @Ultra_Colon @xandoriax Here it is: <Edit by Moderator: Redacted mediafire url> (untested but should work)
     
    Last edited by a moderator: Mar 12, 2017
  13. Offline

    xandoriax

  14. Offline

    thehutch

    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
     
  15. Offline

    dbizzzle

    @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.
     
  16. Offline

    Ako

    I downloaded your plugin, now how do I edit the messages? (I'm new to Bukkit)
    Thanks
     
  17. Offline

    dbizzzle

    Oh, I didn't actually make the messages configurable, I will do that soon.
     
  18. Offline

    Ultra_Colon

    Thanks you very much kind sir, I appreciate your work.
     
    Last edited by a moderator: Mar 12, 2017
  19. Offline

    dbizzzle

  20. Offline

    Ultra_Colon

    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!
     
  21. Offline

    dbizzzle

    @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
     
  22. Offline

    Lolmewn

    It's really simple.
    Code:
    String name = event.getPlayer().getName();
    		if(!new File(event.getPlayer().getWorld().getName() + "/players/" + name + ".dat").exists()){
     
  23. Offline

    dbizzzle

    @Lolmewn Thats almost exactly what I did....
     
  24. Offline

    dbizzzle

  25. Offline

    xandoriax

    @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 :/
     
  26. Offline

    dbizzzle

    @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?
     
  27. Offline

    xandoriax

    no i save it as xannycraft :/
     
  28. Offline

    dbizzzle

    @xandoriax Is that the actual name of the world?
     
  29. Offline

    xandoriax

Share This Page