Night Messager

Discussion in 'Archived: Plugin Requests' started by Blackbirddddd, Dec 2, 2012.

  1. Offline

    Blackbirddddd

    I wish for a plugin which says "The corpses are rising..." when night starts, and possibly one which says "The undead are burning. You are safe for now" at Dawn.
     
  2. Easy, coding right now :3 ill do that for ya.

    I will need the know the name of your world for this to work.

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

    PrismaMC

    I suggest adding a config so this could be used more commonly for everyone.
     
  4. Offline

    Blackbirddddd

    It is called 'world'
     
  5. I
    ll just make a config file xD, well Ill try to code this as soon as I can.
     
  6. Offline

    Blackbirddddd

    Thanks[​IMG]
     
  7. Offline

    Codisimus

    Why do you need to know the name of the world? Just use the following code sample to get the main world of the server.
    Code:
    World world = Bukkit.getServer().getWorlds().get(0);
     
  8. Or:

    Code:
    World world = player.getWorld().gatName();
    //:P
     
  9. Offline

    Codisimus

    True, that is even easier if you already have the Player object.
     

Share This Page