-\r
- /*\r
- // Original approach...\r
- private boolean checkRatio( )\r
- {\r
- float required = getRequired();\r
- float ratio = (float) yesVoters.size() / (float) plugin.getServer().getOnlinePlayers().length;\r
- if ( ratio >= required ) return true;\r
- return false;\r
- }\r
-\r
- // Replacement code\r
- private boolean checkRatio( )\r
- {\r
- if ( ((float) yesVoters.size() / (float) plugin.getServer().getOnlinePlayers().length ) >= getRequired() )\r
- return true;\r
- return false;\r
- }\r
-\r
- // But, trying to do it inline instead\r
- */\r