Turn [OFF] ALL SERVER REDSTONE at NIGHT! Or at a certain interval..

Discussion in 'Plugin Requests' started by zecheesy, Jul 31, 2012.

  1. Offline

    zecheesy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Plugin category: [MECH]

    Suggested name: RedstoneDisable. TimedRedstone. NoRedtimeAtBedtime

    What I want: Disables ALL redstone when it's night. Enables ALL redstone back again in the day.
    Thus: disables:
    1. redstone
    2. redstone torch
    3. redstone repeater
    You can leave buttons/levers/pressureplates to work day and night if you want. Or you can disable all of that in the night.
    I need this plugin to reduce a crapload of lag on my server. EXP machines all day and night makes the server laggy :)

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: No permissions needed.

    When I'd like it by: By 1.3 update for bukkit please

    This post has been edited 2 times. It was last edited by zecheesy Aug 2, 2012.
  2. Offline

    zecheesy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hurry!! 1.3 is coming :(
  3. Online

    turqmelon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I don't think this would be the best way to go about combatting lag...a lot of redstone machinery may require parts to stay in an "on" state.

    This post has been edited 1 time. It was last edited by turqmelon Aug 1, 2012.
    np98765 likes this.
  4. Offline

    zecheesy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Well there's an excess usage of on-going XP machines.
    = lag
  5. Online

    turqmelon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    How about just making a rule against ongoing clocks then?
  6. Offline

    iBCoLLiN

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Or maybe a master switch?
  7. Offline

    zecheesy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yeah I would need a plugin for that..
    :/ that would be super hard to administrate or follow..

    The simple solution is to turn off redstone in the night and enable it in the day!
  8. Offline

    iBCoLLiN

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Try this for the master switch:
    http://dev.bukkit.org/server-mods/wireless-redstone/
  9. Online

    lol768 BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  10. Offline

    zecheesy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Channels :(
    I'd have to make weird regions to do that

    I can't region the whole world o.o

    Please! 1.3 is coming in some hours!!
  11. Online

    lol768 BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What makes you think Bukkit will be available for 1.3?
  12. Offline

    zecheesy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    it will, someday.
    1.3 is coming in in hour or so.
    bukkit is updating from hour - a day or so
  13. Offline

    Konkz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Not to say, but 1.3 is already out? :p
  14. Offline

    zecheesy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    yeah now it is :D
  15. Offline

    zecheesy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  16. Offline

    zecheesy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    So much effing lag at my server
    NoLagg is outdated
    So
    PLEASE!!!!
  17. Offline

    breezeyboy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    ZetaEntertainment likes this.
  18. Online

    lol768 BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  19. Offline

    zecheesy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  20. Offline

    4cube

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Almost. You can't actually cancel the event, but you can set the redstone current of the block that changes current. Just have to set the new current to the old current, which would stop blocks from changing redstone current. I'm almost done with the request, just need to implement time functionality.For those who want to see how it's done:
    Code:
    @EventHandler
    public void onBlockRedstoneChange(BlockRedstoneEvent event){
    event.setNewCurrent(event.getOldCurrent());
    }
    EDIT: I'm done. I wasn't able to implement the broadcast thing, I hope that's not a desaster.

    This post has been edited 1 time. It was last edited by 4cube Aug 4, 2012.
  21. Offline

    zecheesy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    thats awesome!!! are you doing this day/night based or interval based? either way, make sure to broadcast when redstone turns on or off
  22. Offline

    4cube

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    So you really need that broadcast? Ok, ill try my best :D in my plugin redstone changes get disabled during the night and enabled when the day begins.
    zecheesy likes this.
  23. Offline

    4cube

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Just finished. The name of the plugin is McEMP (EMP = Electromagnetic Pulse, destroys electrical systems) It now broadcasts a message when redstone current changes get enabled or disabled. Disabled at night, enables in the morning. In the config file, you can enable/disable the plugin and type the name of the world the plugin should get the time of. By default, it's set to World 0. Be aware, clocks might need to be reactivated after the plugin has disabled them! (Place/destroy blocks next to them or replace redstone torches/repeaters) You can also en/disable the plugin in-game by typing /emp on or /emp off.

    http://dev.bukkit.org/server-mods/mcemp/files/2-mce-mp-beta/ - Should be downloadable without approval.
    ZeusAllMighty11 and zecheesy like this.
  24. Offline

    zecheesy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Maybe you could change the message so it says The sun and redstone are now on! and Redstone has turned off because it's night! They are like "what the cramp is EMP?" every time it changes...
    Or you could mae the messages configurable :D
  25. Offline

    4cube

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ok, I'll do that tomorrow :D Just wanted to relase it as quick as possible.
  26. Offline

    4cube

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    This post has been edited 1 time. It was last edited by 4cube Aug 4, 2012.
  27. Online

    lol768 BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thought it would be something like this. Thanks for explaining :)
    4cube likes this.

Share This Page