X-Git-Url: https://git.defcon.no/?p=YAVote;a=blobdiff_plain;f=src%2Fno%2Fdefcon%2Fyavote%2FYAVote.java;fp=src%2Fno%2Fdefcon%2Fyavote%2FYAVote.java;h=f12edb3c28b10f92a1de991585c5cbea303dc7ce;hp=cdb04f072afdf54bbd05d7c6ce6e850ef99bf11a;hb=ac632f1a071b3a9d84681041420c260be9d9f1d2;hpb=a1fc73715c4b302f418bca4e1be8ce9272b70d78 diff --git a/src/no/defcon/yavote/YAVote.java b/src/no/defcon/yavote/YAVote.java index cdb04f0..f12edb3 100644 --- a/src/no/defcon/yavote/YAVote.java +++ b/src/no/defcon/yavote/YAVote.java @@ -95,7 +95,7 @@ public class YAVote extends JavaPlugin { return notImplemented(player); } - else if ( voteCmd.equalsIgnoreCase("sun") || voteCmd.equalsIgnoreCase("rain") || + else if ( voteCmd.equalsIgnoreCase("sun") || voteCmd.equalsIgnoreCase("rain") || voteCmd.equalsIgnoreCase("storm") || voteCmd.equalsIgnoreCase("day") || voteCmd.equalsIgnoreCase("night") ) { if ( ! manager.isVoteRunning() ) @@ -163,7 +163,7 @@ public class YAVote extends JavaPlugin { private boolean testPermission (String cmd, String action, Player p) { - if ( ( cmd.equalsIgnoreCase("sun") ) || cmd.equalsIgnoreCase("rain") ) + if ( ( cmd.equalsIgnoreCase("sun") ) || cmd.equalsIgnoreCase("rain") || cmd.equalsIgnoreCase("storm") ) { if ( p.hasPermission("vote.weather." + action ) ) return true; else return false;