From 73353935fce44a83d196bcee0b3e6ad866e6047b Mon Sep 17 00:00:00 2001 From: Jon Langseth Date: Tue, 8 May 2012 16:13:12 +0200 Subject: [PATCH] More debug info. --- src/no/defcon/yavote/Votemanager.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 ); -- 2.39.2