This commit is contained in:
speed 2020-12-05 16:42:41 -05:00
parent 9baa7dccc1
commit 73b37b4c8f
7 changed files with 17 additions and 19 deletions

View file

@ -15,7 +15,6 @@ repositories {
maven { url = "https://mvn.intellectualsites.com/content/repositories/releases" } maven { url = "https://mvn.intellectualsites.com/content/repositories/releases" }
maven { url = "https://mvn.intellectualsites.com/content/repositories/snapshots" } maven { url = "https://mvn.intellectualsites.com/content/repositories/snapshots" }
maven { url = "http://repo.mvdw-software.be/content/groups/public/" } maven { url = "http://repo.mvdw-software.be/content/groups/public/" }
maven { url = "https://telesphoreo.me/repo/maven" }
mavenLocal() mavenLocal()
} }
@ -42,7 +41,7 @@ dependencies {
compile("se.hyperver.hyperverse:Core:0.6.0-SNAPSHOT"){ transitive = false } compile("se.hyperver.hyperverse:Core:0.6.0-SNAPSHOT"){ transitive = false }
compile('com.sk89q:squirrelid:1.0.0-SNAPSHOT'){ transitive = false } compile('com.sk89q:squirrelid:1.0.0-SNAPSHOT'){ transitive = false }
compile('be.maximvdw:MVdWPlaceholderAPI:3.1.1'){ transitive = false } compile('be.maximvdw:MVdWPlaceholderAPI:3.1.1'){ transitive = false }
implementation('me.totalfreedom:TotalFreedomMod:2020.11'){ transitive = false } implementation('com.github.AtlasMediaGroup:TotalFreedomMod:0be2aa7'){ transitive = false }
} }
sourceCompatibility = 1.8 sourceCompatibility = 1.8

View file

@ -147,9 +147,9 @@
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>me.totalfreedom</groupId> <groupId>com.github.AtlasMediaGroup</groupId>
<artifactId>TotalFreedomMod</artifactId> <artifactId>TotalFreedomMod</artifactId>
<version>2020.11</version> <version>0be2aa7</version>
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
<dependency> <dependency>

View file

@ -4,7 +4,6 @@ repositories {
maven { url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" } maven { url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }
maven { url = "https://rayzr.dev/repo/" } maven { url = "https://rayzr.dev/repo/" }
maven { url = "https://repo.dmulloy2.net/nexus/repository/public/" } maven { url = "https://repo.dmulloy2.net/nexus/repository/public/" }
maven { url = "https://telesphoreo.me/repo/maven" }
} }
def textVersion = "3.0.2" def textVersion = "3.0.2"
@ -23,7 +22,7 @@ dependencies {
implementation("org.jetbrains:annotations:20.1.0") implementation("org.jetbrains:annotations:20.1.0")
implementation("org.khelekore:prtree:1.7.0-SNAPSHOT") implementation("org.khelekore:prtree:1.7.0-SNAPSHOT")
implementation("org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT") implementation("org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT")
implementation("me.totalfreedom:TotalFreedomMod:2020.11") implementation("com.github.AtlasMediaGroup:TotalFreedomMod:0be2aa7")
} }
sourceCompatibility = 1.8 sourceCompatibility = 1.8

View file

@ -81,9 +81,9 @@
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>me.totalfreedom</groupId> <groupId>com.github.AtlasMediaGroup</groupId>
<artifactId>TotalFreedomMod</artifactId> <artifactId>TotalFreedomMod</artifactId>
<version>2020.11</version> <version>0be2aa7</version>
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
<dependency> <dependency>

View file

@ -161,7 +161,7 @@ public abstract class Command {
public boolean hasConfirmation(CommandCaller player) { public boolean hasConfirmation(CommandCaller player) {
// Confirmation message bypass // Confirmation message bypass
return this.confirmation && !plotSquaredHandler.isStaff(player); return this.confirmation && !plotSquaredHandler.isAdmin(player);
} }
public List<String> getAliases() { public List<String> getAliases() {

View file

@ -17,21 +17,21 @@ public class PlotSquaredHandler
public static final Logger LOGGER = Bukkit.getPluginManager().getPlugin("PlotSquared").getLogger(); public static final Logger LOGGER = Bukkit.getPluginManager().getPlugin("PlotSquared").getLogger();
private static Function<Player, Boolean> adminProvider; private static Function<Player, Boolean> adminProvider;
public boolean isStaff(CommandCaller commandCaller) public boolean isAdmin(CommandCaller commandCaller)
{ {
final Player player = getPlayer(commandCaller.toString()); final Player player = getPlayer(commandCaller.toString());
if (player == null) if (player == null)
{ {
return false; return false;
} }
return isStaff(player); return isAdmin(player);
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public boolean isStaff(Player player) public boolean isAdmin(Player player)
{ {
TotalFreedomMod tfm = getTFM(); TotalFreedomMod tfm = getTFM();
return tfm.sl.isStaff(player); return tfm.al.isAdmin(player);
} }
public static Player getPlayer(CommandCaller commandCaller) 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.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.createroadschematic", "plots.merge", "plots.unlink", "plots.area", "plots.setup", "plots.set.flag.other", "plots.reload",
"plots.backup", "plots.debug"); "plots.backup", "plots.debug");
if (!isStaff(player)) if (!isAdmin(player))
{ {
return !permission.startsWith("plots.admin") && !adminOnlyPermissions.contains(permission); return !permission.startsWith("plots.admin") && !adminOnlyPermissions.contains(permission);
} }

View file

@ -8,7 +8,7 @@ buildscript {
maven { url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" } maven { url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }
maven { url = "https://rayzr.dev/repo/" } maven { url = "https://rayzr.dev/repo/" }
maven { url = "https://repo.dmulloy2.net/nexus/repository/public/" } maven { url = "https://repo.dmulloy2.net/nexus/repository/public/" }
maven { url = "https://telesphoreo.me/repo/maven" } maven { url = "https://jitpack.io" }
} }
dependencies { dependencies {
classpath("com.github.jengelman.gradle.plugins:shadow:5.0.0") classpath("com.github.jengelman.gradle.plugins:shadow:5.0.0")
@ -91,7 +91,7 @@ subprojects {
testAnnotationProcessor("org.projectlombok:lombok:1.18.8") testAnnotationProcessor("org.projectlombok:lombok:1.18.8")
testImplementation("junit:junit:4.13") testImplementation("junit:junit:4.13")
implementation("org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT") implementation("org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT")
implementation("me.totalfreedom:TotalFreedomMod:2020.11") implementation("com.github.AtlasMediaGroup:TotalFreedomMod:0be2aa7")
} }
configurations.all { configurations.all {