Trying to add a vote command - #7
Conversation
Trying to add a vote command for the players to vote for night/day/rain etc..
Changed "args.equals(String)" to "args.equalsIgnoreCase(String)" :)
Darkool
commented
Jan 31, 2015
do you say, like cubecraft right?, i think thats idea must be added by every people that want custom their game, because maybe it's unnecessary, regards |
lorenzoprdev
commented
Jan 31, 2015
Maybe, I can try to add a config line for the owners to let them decide if they want to set the player's time or the global arena time. I think i'll be using setPlayerTime and if the config is set to all players, I will get all the players in the arena and set the time for them individually. I'm a noob coding but I'll try :) |
Darkool
commented
Jan 31, 2015
you can try creating first few arraylists with options (sun, night, etc) later, a gui for choose "time" or whatever you want, (use util class), then when player click on menu, add player to the arraylist and when "arenastate = INGAME" then set this with a time event for change time, checking length for every arraylist(i think that this is the easier way to do thats you want) |
lorenzoprdev
commented
Jan 31, 2015
Great idea! I'll try it! |
Darkool
commented
Jan 31, 2015
at this moment, i'm very busy, but comment here if u have problems with this api |
naoufalzerai
commented
Nov 20, 2015
hello |
Trying to add a vote command for the players to vote for night/day/rain etc..
Surely it will need to change other parts of the plugin, but It's too compliecate for me. This is just an Idea for vip players! :)