diff --git a/pom.xml b/pom.xml index cfd6f84..7151ee8 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ me.youhavetrouble PreventStabby - 1.3-pre3 + 1.3-pre4 jar PreventStabby @@ -74,8 +74,8 @@ https://oss.sonatype.org/content/groups/public/ - jitpack.io - https://jitpack.io + bs-repo + https://ci.pluginwiki.us/plugin/repository/everything/ sk89q-repo @@ -102,10 +102,9 @@ 0.9.12 - com.github.Thatsmusic99 + com.github.thatsmusic99 ConfigurationMaster - v1.0-RC-2 - compile + v1.0.3 org.bstats diff --git a/src/main/java/me/youhavetrouble/preventstabby/PreventStabby.java b/src/main/java/me/youhavetrouble/preventstabby/PreventStabby.java index 5ec2b20..eb40972 100644 --- a/src/main/java/me/youhavetrouble/preventstabby/PreventStabby.java +++ b/src/main/java/me/youhavetrouble/preventstabby/PreventStabby.java @@ -22,9 +22,9 @@ public final class PreventStabby extends JavaPlugin { @Getter private static PreventStabby plugin; private ConfigCache configCache; - protected PlayerManager playerManager; - protected DatabaseSQLite sqLite; - protected SmartCache smartCache; + private PlayerManager playerManager; + private DatabaseSQLite sqLite; + private SmartCache smartCache; @Override public void onEnable() { diff --git a/src/main/java/me/youhavetrouble/preventstabby/util/Util.java b/src/main/java/me/youhavetrouble/preventstabby/util/Util.java index 62e3de0..a1f6239 100644 --- a/src/main/java/me/youhavetrouble/preventstabby/util/Util.java +++ b/src/main/java/me/youhavetrouble/preventstabby/util/Util.java @@ -52,7 +52,7 @@ public class Util { playerPassengersWithPvpEnabled.add(player.getUniqueId()); } - if (playerPassengersWithPvpEnabled.isEmpty()) { + if (!mount.getPassengers().isEmpty() && playerPassengersWithPvpEnabled.isEmpty()) { PluginMessages.sendActionBar(attacker, config.getCannot_attack_mounts_victim()); return true; }