Fix for #23 & typo in Factionshook
"Factions land is reported incorrectly. One of my factions (for OPs) has only one member in testing, so power 10, but 71 chunks (OPs can claim more chunks than power allows). Plan reports land = 10. How does Plan determine faction holdings?" Yeah fixed that.
This commit is contained in:
parent
0a9f994049
commit
b41c51f103
|
@ -72,7 +72,7 @@ public class FactionsHook extends Hook {
|
|||
info.put("LEADER", "No leader");
|
||||
}
|
||||
info.put("POWER", faction.getPower());
|
||||
info.put("LAND", faction.getPower());
|
||||
info.put("LAND", faction.getLandCount());
|
||||
} else {
|
||||
info.put("LEADER", "Faction not found");
|
||||
info.put("POWER", "Faction not found");
|
||||
|
|
|
@ -973,7 +973,7 @@ public abstract class SQLDB extends Database {
|
|||
for (KillData kill : kills) {
|
||||
statement.setInt(1, userId);
|
||||
statement.setInt(2, kill.getVictimUserID());
|
||||
statement.setString(2, kill.getWeapon());
|
||||
statement.setString(3, kill.getWeapon());
|
||||
statement.setLong(4, kill.getDate());
|
||||
statement.addBatch();
|
||||
commitRequired = true;
|
||||
|
|
|
@ -47,7 +47,7 @@ public class Response {
|
|||
String[] requestArgs = request.getUri().split("/");
|
||||
boolean forbidden = false;
|
||||
String securityCode = "";
|
||||
if (requestArgs.length < 1) {
|
||||
if (requestArgs.length < 2) {
|
||||
forbidden = true;
|
||||
} else {
|
||||
securityCode = requestArgs[1];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
name: Plan
|
||||
author: Rsl1122
|
||||
main: main.java.com.djrapitops.plan.Plan
|
||||
version: 2.6.2
|
||||
version: 2.6.3
|
||||
|
||||
softdepend:
|
||||
- OnTime
|
||||
|
|
Loading…
Reference in New Issue