[MECH] TimeAndWeatherControl v0.5 - Multi-World Compatible Control and Vote System [1.1-R3]

Discussion in 'Inactive/Unsupported Plugins' started by bassfader, Jul 11, 2011.

  1. Offline

    bassfader

    TimeAndWeatherControl v0.5 - Multi-World Compatible Control and Vote System
    Version: v0.5​
    Tested against CraftBukkit Release Build: 1.1-R3​
    TimeAndWeatherControl is a Multi-World Time and Weather Control System. It also supports changing Time and Weather from the Console.​


    TimeAndWeatherControl Moved to BukkitDev. Click here to visit the page


    Optional additional plugins:
    Permissions


    Features:
    • Permissions Support!
      • If permissions is not used, the vote commands will be open to anybody, the set commands will default to OP only
    • Set the time in your current or any other world (ingame or via console!)
    • Set the weather in your current or any other world (ingame or via console!)
    • Start a timevote to change the time in your current world
    • Start a weathervote to change the weather in your current world
    • Configurable percentage for the number of people needed for a vote to succeed
    • ALL(!) messages displayed to the users are configurable supporting:
      • Multiline messages
      • Colored messages
    Plugin usage:
    • /timeset [time] [world]
    • /tset [time] [world]
      • Set the time in the world [world] to [time]
        Applicable [time] values: dusk, day, dawn, night
      • If no [world] specified it will default to your current world
      • Command can be used from the Console too! (but then [world] must be specified!)
    • /weatherset [time] [world]
    • /wset [weather] [world]
      • Set the weather in the world [world] to [weather]
        Applicable [weather] values: sun, rain, thunder, storm
      • If no [world] specified it will default to your current world
      • Command can be used from the Console too! (but then [world] must be specified!)
    • /timevote [time]
    • /tvote [time]
      • Start a vote to change the time in your current world to [time]
        Applicable [time] values: dusk, day, dawn, night
      • Use yes as [time] value to accept a vote
    • /weathervote [weather]
    • /wvote [weather]
      • Start a vote to change the weather in your current world to [weather]
        Applicable [weather] values: sun, rain, thunder, storm
      • Use yes as [weather] value to accept a vote
    Permissions:
    • /timeset or /tset:
      twc.timeset
    • /weatherset or /wset
      twc.weatherset
    • /timevote or /tvote
      twc.timevote
    • /weathervote or /wvote
      twc.weathervote
    Plugin setup:

    Just copy the TimeAndWeatherControl.jar file into your Plugins folder. Upon first startup it will create a folder "TimeAndWeatherControl" containing the default config file (all messages in english) in which you can do all further configurations. The default config file is commented and should be pretty self-explanatory ;)

    I've also posted the links to ZIP-Archives including the Plugin and the Config-file (english, german one coming soon!).


    Downloads and Links:

    Direct Download (JAR) (Mirrors: Dropbox)
    Direct Download (ZIP file with Config - English) (Mirrors: Dropbox)
    Direct Download (ZIP file with Config - German) (Coming Soon!)


    You like my plugins? Please consider donating a little bit. Thanks!
    [​IMG]


    Changelog:

    Version 0.5
    Code:
    Changed:
        - Only players with permissions are counted for votes
    Version 0.4
    Code:
    Added:
        - Configuration for percentage of players needed for a
          vote to success
     
    Changed:
        - Alias handling
        - Added possible [weather] and [time] values to
          default messages
        - Rewritten Config file generation to (hopefully) fix a
          bug on Unix based systems
    Show Spoiler


    Version 0.3
    Code:
    First public release
     
    Added:
        - Configurable messages via config.yml (Supporting
          Colors and Multiline-Messages!)
     
        - Shorter aliases for the commands added (additional)
          /timeset = /tset
          /weatherset = /wset
          /timevote = /tvote
          /weathervote = /wvote
     
        - Permissions support
          "twc.timeset" for the /timeset command
          "twc.weatherset" for the /weatherset command
          "twc.timevote" for the /timevote command
          "twc.weathervote" for the /weathervote command
    Version 0.2
    Code:
    Beta testing release
     
    Added:
        - Basic vote system for weather and time:
          /timevote [time]
          /weathervote [time]
    Version 0.1
    Code:
    Initial alpha testing release
     
    Features:
        - /weatherset command to change weather
          Usage: /weatherset [weather] [world]
     
        - /timeset command to change Time
          Usage: /timeset [time] [world]
     
    ([world] is optional if you're a player,
      will default to your current world, but
      is mandatory for usage from Console!)
     
    Tim Visee likes this.
  2. Offline

    mooman219

    You get my download :D

    I like this
     
  3. Offline

    bassfader

    Thanks, glad you like it :) Seems like some others do so too, almost 20 downloads allready ^^
     
  4. Offline

    philraz

    Perfect just what I was looking for
    Thanks

    does the weather revert back to its normal cycle after a certain time ?

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

    bassfader

    Yes the weather is just set to the one you choose but it's not permanently set to it. After some random time it will change to something else (depending on Minecraft).

    The commands from my Plugin really just set the weather / time, they don't change it permanently.
     
  6. Offline

    Silicon

    a couple questions/suggestions, can you adjust the percentage needed to win the vote in the config? and also maybe when people type the alias without no variable, possibly add the possible variables for that command just in case they don't know them and also your "Direct Download (ZIP file with Config - English)" doesn't actually contain the config file but other than that, great addon!
     
  7. Offline

    bassfader

    Sure I going to integrate both of that. For now you can also just add the possible variables in to Usage messages in the config file (multi line and color compatible) so you're players can see the possible variables when entering a command wrong.

    And about the Download: Oooops.... I guess it was too late when I uploaded this, didn't even notice it xD Fixed now :)
     
  8. Offline

    runerqp

    Hey umm link not working for me it gives a 0bytes download... both of files
     
  9. Offline

    bassfader

    I'll add some Dropbox download links for the next version which should be coming soon (just at testing, so expect it today or tomorrow ;))
     
  10. Offline

    bassfader

    @runerqp @Silicon
    Plugin Updated and Dropbox Download Links added!
    And well... almost 800 downloads, still no donation... :(

    Version 0.4
    Code:
    Added:
         - Configuration for percentage of players needed for a
          vote to success
    
     Changed:
         - Alias handling
         - Added possible [weather] and [time] values to
          default messages
         - Rewritten Config file generation to (hopefully) fix a
          bug on Unix based systems
     
  11. Offline

    tae244

    just want to say great plugin =), any possibility of adding /wset snow?
     
  12. Offline

    bassfader

    Thanks, glad you like it :)

    Sadly thats not possible, since it depends on the ingame biomes wether it rains or snows (so basically if you are in a "winter-biome", and do a /wset rain it will start snowing. I can't make it snow in a "non-winter-biome")
     
  13. Offline

    Zenox96

    Is multiworld required or optional

    Like the plugin tho but i think it would be better to also have configurable vote shortcuts like:
    /vote midday
    which will change the time to the preconfigured time
     
  14. Offline

    bassfader

    Very good Idea with the configurable shortcuts, added to my todo list :)

    But I dont really understand what you mean with "Is multiworld required or optional"?
    Do you mean if it requires to have a Multi-World plugin like Multiverse or XCraftGate? If so: no
    With Multi-World compatible I only meant that votes and set commends (when no parameter is given) will only apply to the world where the player currently is in (if you only have 1 world, it won't affect the functionality of the plugin in any way).
     
  15. Offline

    Monkey78

    I like the plugin, but I'm not sure where this plugin gets the 'Connected Players' count from with regards to NPC plugins (such as Citizens Plugin).

    I have 2 NPC's on my server, and when I was alone on my server with "VoteSuccessPercentage" set to 50% I still required another vote to pass it. Equally, when I set "VoteSuccessPercentage" to 99% I started another vote and it said I needed 2 more votes to pass.
    From that logic, this plugin thought there were 3 players on the server, and the only other things I could think of was that it thought my 2 NPC's were players and wanted their votes also?
    I've lowered my "VoteSuccessPercentage" to compensate for the NPCs, but it means the voting percentage is made inaccurate on the whole. :oops:
     
  16. Offline

    bassfader

    @Monkey78

    Hmmm... need to test that. But basically it gets the Player count of a world by Bukkits default functions... But going to test it as soon as possible and report back.
     
  17. Offline

    Monkey78

    On a related note, is it possible to not count the people without the "twc.timevote" or " twc.weathervote" permission from the voting percentage needed?

    Situation:
    I was on my the server when an unregistered player came on. So there was now an unreg'd player with no permissions, 2 NPCs who can't vote and then me, a total of 4 'players' with the pass vote set at 33% (to make up for the 2 NPCs), but it was then wanting at least 2 votes to pass before it would make any changes. I was the only player on that possibly could vote, but my vote alone only counted as 25% of the players. :oops:


    Making the vote only count players with the respective permissions would solve both of the above issues I've mentioned, but then I'm no plugin dev so I'm not sure what's possible. :eek:
     
  18. Offline

    bassfader

    @Monkey78

    Well good idea with the permissions, should be possible but I need to look into it first. Though I'm quite busy with my job this week so I can't promise to look into it before the weekend starts, but I'll try it though ;)
     
  19. Offline

    Aiyania

    Setting the Weather to Sun, doesn't stop rain on our server. Any Thoughts?
     
  20. Offline

    bassfader

    Hmmmm... should work (working here on my test server as well as on my "real" server without any problems, using either RB953 or RB1000).

    Maybe got some conflicting plugin which "freezes" the rain state?
    And which Build of bukkit are you using?
     
  21. Offline

    Aiyania

    --Edit Fixed Problem ty op
     
  22. Offline

    Courtney

    Could you make it so that only 1 vote can be going on at a time? and also make it so that there is a time limit between votes? like a cool down?
    Thanks
     
  23. Offline

    bassfader

    It's allready made like there can only be 1 vote per world at a time.
    For the cool down I'm going to think about that, most likely will implement it ;) (Though it'd be a cooldown on per world basis)
     
  24. Offline

    Courtney

    Oh okay, 1 vote per world great :D
    And that would be good, a per world cooldown, good luck adding it, looking forward to it!
     
  25. Offline

    Sim121

    Is it possible to control time duration ?
    For example, with /tstop, the time in the current world stops, in order to keep the day or dawn or dusk or night for a long time for example an event on the server or anything... ?
     
  26. Offline

    bassfader

    Currently not, maybe sometime in the future. At the moment its not planned but sounds like a cool idea :)
     
    Sim121 likes this.
  27. Offline

    Monkey78

    I spotted this on the NPC plugin thread, wasn't sure if it would help with the NPC plugin conflict.
    The unreg'd people not voting is not such a common occurrence, but the NPC's conflict is pretty much putting me off from using this plugin any more as I've had to continually change the 'VoteSuccessPercentage' to compensate for every time anyone makes a new NPC.:(
     
  28. Offline

    bassfader

    I'm allready working on it, it's just me beeing a pretty busy at the moment due to having hell of a lot of work (at my "Reallife Job"), so I only really have the time to look at it at weekends. Though I am quite confident that I will get it done this weekend, so expect a new version fixing this problem coming soon ;)
     
  29. Offline

    bassfader

    @Monkey78 I am just testing the new version with a fix for this, should be done sometime tomorrow (or better today, sunday). Stay tuned ;) And sorry for taking so long to fix it, but as I said I am quite busy in my job currently, and this is just something I do in my spare time...

    And for all the other features requested, it may take some time, I am looking into this tomorrow/today (sunday) too, but I'm not sure if I get these done too.
     
    Monkey78 likes this.
  30. Offline

    Raspberry

    thanks for the plugin, but I don't see how to change the number of votes required.

    There were three people on the server, I called a vote and it said six yes votes were required to make the change... there weren't even 6 people on the server... Is there somewhere I an set that?
     

Share This Page