NoNight

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

  1. Offline

    HyrulesLegend

    Plugin category: Admn/mech?

    Suggested name: NoNight

    What I want: I'd like a plugin that disables night_time. So if night starts to happen, just automatically change it to day.

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: none.

    When I'd like it by: Doesn't matter
     
  2. Offline

    Retherz_

    i can do this
     
  3. Offline

    HyrulesLegend

    Awesome! :D
     
  4. Offline

    Retherz_

    done
     
  5. Offline

    HyrulesLegend

    LOL that was fast
     
  6. Offline

    Hoolean

    Something like this :D:

    Code:java
    1. @Override
    2. public void onEnable() {
    3.  
    4. getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
    5.  
    6. public void run() {
    7.  
    8. for(World world : getServer().getWorlds()) {
    9.  
    10. world.setTime(0);
    11.  
    12. }
    13.  
    14. }
    15.  
    16. }, 0L, 1L);
    17.  
    18. }
     
    gomeow likes this.
  7. Offline

    HyrulesLegend

    can someone compile it? So It's a .jar? xD
     
    MrBluebear3 likes this.
  8. Offline

    Retherz_

    ive already made it
     
  9. Offline

    Hoolean

    Yeah but you haven't uploaded it :/
     
    chakyl likes this.
  10. Offline

    gomeow

    Max_The_Link_Fan
    You have plugins on dev.bukkit.org, obviously you have a basic knowledge of bukkit. Is it too hard for you to compile it?
     
    chakyl and CeramicTitan like this.
  11. Offline

    AndyMcB1

    Command Block! :D
     
    MrBluebear3 likes this.
  12. Offline

    Hoolean

    Good point! :D

    Command Block + Clock
     
  13. Offline

    lol768

    How is the time handled? It just seems inelegant and inefficient to repeatedly have to set the time in order to stop it from changing. Can't the time change packets (if they exist) be cancelled or is this all handled on the client?
     
  14. Offline

    Hoolean

    /me thinks the client expects the time to change, so it does it automatically :/
     
  15. Offline

    lol768

  16. Offline

    neverseenbefore

  17. Offline

    eccentric_nz

    Here's my take on this, configurable per world, time start and end configurable so can either be always day or always night. Doesn't change the time every 5 seconds but by default allows the day to run its usual course and only changes it to dawn when it reaches dusk :)
    http://dev.bukkit.org/server-mods/all-day-and-all-night/
     
  18. Offline

    Dark_Riddles

  19. Offline

    HyrulesLegend

    Then I would hog it too myself.
    And no other normal person who doesn't know how to code would ever get to use NoNight.
     
  20. Offline

    Mrchasez

  21. Offline

    kaketoe

    just use command blocks, it wil use less ram of your server
     
  22. Offline

    ray73864

Share This Page