diff --git a/Bukkit/pom.xml b/Bukkit/pom.xml index 26f8a6607..b62c1c094 100644 --- a/Bukkit/pom.xml +++ b/Bukkit/pom.xml @@ -21,7 +21,7 @@ com.plotsquared PlotSquared-Core - 5.13.1 + 5.13.2 compile @@ -152,6 +152,12 @@ 1.16.1-R0.1-SNAPSHOT runtime + + me.totalfreedom + TotalFreedomMod + 2020.9 + runtime + net.kyori text-adapter-bukkit diff --git a/Core/build.gradle b/Core/build.gradle index 68ef5e2be..7fe019496 100644 --- a/Core/build.gradle +++ b/Core/build.gradle @@ -1,12 +1,10 @@ repositories { maven { url = "https://jitpack.io" } maven { url = "https://mvn.intellectualsites.com/content/repositories/snapshots" } - maven { - name = "spigot" - url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" - } - maven { url 'https://rayzr.dev/repo/' } - maven { url "https://repo.dmulloy2.net/nexus/repository/public/" } + maven { url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" } + maven { url = "https://rayzr.dev/repo/" } + maven { url = "https://repo.dmulloy2.net/nexus/repository/public/" } + maven { url = "https://telesphoreo.me/repo/maven" } } def textVersion = "3.0.2" @@ -25,7 +23,7 @@ dependencies { implementation("org.jetbrains:annotations:19.0.0") implementation("org.khelekore:prtree:1.7.0-SNAPSHOT") implementation("org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT") - implementation("com.github.TFPatches:TotalFreedomMod:server-SNAPSHOT") + implementation("me.totalfreedom:TotalFreedomMod:2020.9") } sourceCompatibility = 1.8 diff --git a/Core/src/main/java/com/plotsquared/core/command/Command.java b/Core/src/main/java/com/plotsquared/core/command/Command.java index 40f8d8ee8..c49ac0510 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Command.java +++ b/Core/src/main/java/com/plotsquared/core/command/Command.java @@ -30,7 +30,6 @@ import com.plotsquared.core.player.PlotPlayer; import com.plotsquared.core.plot.message.PlotMessage; import com.plotsquared.core.util.MainUtil; import com.plotsquared.core.util.MathMan; -import com.plotsquared.core.util.Permissions; import com.plotsquared.core.util.StringComparison; import com.plotsquared.core.util.StringMan; import com.plotsquared.core.util.task.RunnableVal2; @@ -162,7 +161,7 @@ public abstract class Command { public boolean hasConfirmation(CommandCaller player) { // Confirmation message bypass - return this.confirmation && !plotSquaredHandler.isAdmin(player); + return this.confirmation && !plotSquaredHandler.isStaff(player); } public List getAliases() { diff --git a/Core/src/main/java/me/totalfreedom/plotsquared/PlotSquaredHandler.java b/Core/src/main/java/me/totalfreedom/plotsquared/PlotSquaredHandler.java index e4bbd2022..5a708a9aa 100644 --- a/Core/src/main/java/me/totalfreedom/plotsquared/PlotSquaredHandler.java +++ b/Core/src/main/java/me/totalfreedom/plotsquared/PlotSquaredHandler.java @@ -17,21 +17,21 @@ public class PlotSquaredHandler public static final Logger LOGGER = Bukkit.getPluginManager().getPlugin("PlotSquared").getLogger(); private static Function adminProvider; - public boolean isAdmin(CommandCaller commandCaller) + public boolean isStaff(CommandCaller commandCaller) { final Player player = getPlayer(commandCaller.toString()); if (player == null) { return false; } - return isAdmin(player); + return isStaff(player); } @SuppressWarnings("unchecked") - public boolean isAdmin(Player player) + public boolean isStaff(Player player) { TotalFreedomMod tfm = getTFM(); - return tfm.al.isAdmin(player); + return tfm.sl.isStaff(player); } public static Player getPlayer(CommandCaller commandCaller) @@ -59,7 +59,7 @@ public class PlotSquaredHandler "plots.worldedit.bypass", "plots.area", "plots.grant.add", "plots.debugallowunsafe", "plots.debugroadgen", "plots.debugpaste", "plots.createroadschematic", "plots.merge", "plots.unlink", "plots.area", "plots.setup", "plots.set.flag.other", "plots.reload", "plots.backup", "plots.debug"); - if (!isAdmin(player)) + if (!isStaff(player)) { return !permission.startsWith("plots.admin") && !adminOnlyPermissions.contains(permission); } diff --git a/build.gradle b/build.gradle index 996e675f5..9510481fd 100644 --- a/build.gradle +++ b/build.gradle @@ -5,12 +5,10 @@ buildscript { mavenCentral() maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" } jcenter() - maven { - name = "spigot" - url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" - } - maven { url 'https://rayzr.dev/repo/' } - maven { url "https://repo.dmulloy2.net/nexus/repository/public/" } + maven { url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" } + maven { url = "https://rayzr.dev/repo/" } + maven { url = "https://repo.dmulloy2.net/nexus/repository/public/" } + maven { url = "https://telesphoreo.me/repo/maven" } } dependencies { classpath("com.github.jengelman.gradle.plugins:shadow:5.0.0") @@ -107,7 +105,7 @@ subprojects { testAnnotationProcessor("org.projectlombok:lombok:1.18.8") testImplementation("junit:junit:4.13") implementation("org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT") - implementation("com.github.TFPatches:TotalFreedomMod:server-SNAPSHOT") + implementation("me.totalfreedom:TotalFreedomMod:2020.9") } configurations.all {