From: Jon Langseth Date: Tue, 8 May 2012 14:13:12 +0000 (+0200) Subject: More debug info. X-Git-Url: https://git.defcon.no/?a=commitdiff_plain;h=73353935fce44a83d196bcee0b3e6ad866e6047b;p=YAVote More debug info. --- diff --git a/src/no/defcon/yavote/Votemanager.java b/src/no/defcon/yavote/Votemanager.java index 78c059a..8690db3 100644 --- a/src/no/defcon/yavote/Votemanager.java +++ b/src/no/defcon/yavote/Votemanager.java @@ -126,8 +126,14 @@ public class Votemanager { cancelVote(); return; } + + plugin.getLogger().info("Debugging: yesVoters.size() = " + yesVoters.size() ); + plugin.getLogger().info("Debugging: getRequired() = " + getRequired() ); + plugin.getLogger().info("Debugging: getOnlinePlayers - 1 = " + (plugin.getServer().getOnlinePlayers().length - 1) ); + plugin.getLogger().info("Debugging: ratio = " + ( (float) yesVoters.size() / (float) (plugin.getServer().getOnlinePlayers().length - 1) ) ); + //if( checkRatio( ) ) - if ( ((float) yesVoters.size() / (float) plugin.getServer().getOnlinePlayers().length -1 ) >= getRequired() ) + if ( ((float) yesVoters.size() / (float) (plugin.getServer().getOnlinePlayers().length - 1) ) >= getRequired() ) { plugin.getLogger().info("Debugging: after removing vote, ratio test returns TRUE, applying vote"); applyVote( voteType );