mirror of
https://github.com/TotalFreedomMC/TF-WorldGuardExtraFlagsPlugin.git
synced 2025-02-05 11:52:42 +00:00
modify for tfm
This commit is contained in:
parent
d9f15956cd
commit
d946737e90
4 changed files with 19 additions and 9 deletions
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
.idea/*
|
||||
*.iml
|
||||
/*/target/
|
||||
/*/dependency-reduced-pom.xml
|
|
@ -1,7 +1,7 @@
|
|||
name: WorldGuardExtraFlags
|
||||
description: Adds more flags to WorldGuard to help manage your server easily!
|
||||
|
||||
version: 4.1.5-SNAPSHOT
|
||||
version: 4.1.5-SNAPSHOT-TF
|
||||
api-version: 1.13
|
||||
|
||||
author: isokissa3
|
||||
|
|
10
WG/pom.xml
10
WG/pom.xml
|
@ -10,6 +10,10 @@
|
|||
<artifactId>wg</artifactId>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>jitpack.io</id>
|
||||
<url>https://jitpack.io</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>spigot-repo</id>
|
||||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
||||
|
@ -61,5 +65,11 @@
|
|||
<version>2.17.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.TFPatches</groupId>
|
||||
<artifactId>TotalFreedomMod</artifactId>
|
||||
<version>server-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
|
@ -6,6 +6,7 @@ import java.util.HashSet;
|
|||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import me.totalfreedom.totalfreedommod.TotalFreedomMod;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.metadata.FixedMetadataValue;
|
||||
|
@ -42,14 +43,9 @@ public class WorldGuardUtils
|
|||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//Permission system that supports wildcars is really helpful here :)
|
||||
if (player.hasPermission("worldguard.region.bypass." + world.getName() + "." + region.getId() + "." + flag.getName()))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
// Fuck your shitty permission system - packs
|
||||
return TotalFreedomMod.plugin().al.isAdmin(player);
|
||||
}
|
||||
|
||||
public static State queryState(Player player, World world, Set<ProtectedRegion> regions, StateFlag flag)
|
||||
|
|
Loading…
Reference in a new issue