add worldguard flag for force pvp

This commit is contained in:
YouHaveTrouble
2021-08-03 17:24:17 +02:00
parent 60b360f170
commit f182c2c859
10 changed files with 129 additions and 22 deletions
@@ -42,7 +42,7 @@ public class SmartCache {
return playerData;
} catch (NullPointerException ex) {
// Return false if database call fails
return new PlayerData(false);
return new PlayerData(uuid,false);
}
}
}
@@ -53,7 +53,7 @@ public class SmartCache {
PreventStabby.getPlugin().getPlayerManager().getPlayer(uuid).setPvpEnabled(state);
}
// Update the database aswell
PreventStabby.getPlugin().getSqLite().updatePlayerInfo(uuid, new PlayerData(state));
PreventStabby.getPlugin().getSqLite().updatePlayerInfo(uuid, new PlayerData(uuid, state));
}