From 1c04b1a0e0ad5f9926cce6387ce5cd3358120630 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 19 Apr 2016 15:32:31 +1000 Subject: [PATCH] Fixes #1062 --- .../com/plotsquared/bukkit/util/BukkitEconHandler.java | 9 +++++++++ .../com/intellectualcrafters/plot/config/Settings.java | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitEconHandler.java b/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitEconHandler.java index 145c04842..830afe93c 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitEconHandler.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitEconHandler.java @@ -75,4 +75,13 @@ public class BukkitEconHandler extends EconHandler { public double getBalance(PlotPlayer player) { return this.econ.getBalance(player.getName()); } + + public void setPermission(String world, String player, String perm, boolean value) { + if (value) { + this.perms.playerAdd(world, player, perm); + } else { + this.perms.playerRemove(world, player, perm); + } + } + } diff --git a/Core/src/main/java/com/intellectualcrafters/plot/config/Settings.java b/Core/src/main/java/com/intellectualcrafters/plot/config/Settings.java index 87f873cce..909404670 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/config/Settings.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/config/Settings.java @@ -167,11 +167,11 @@ public class Settings { /** * SQLite enabled? */ - public static boolean USE_SQLITE = false; + public static boolean USE_SQLITE = true; /** * MySQL Enabled? */ - public static boolean USE_MYSQL = true; /* NOTE: Fixed connector */ + public static boolean USE_MYSQL = false; /* NOTE: Fixed connector */ /** * SQLite Database name */