Quote Regex Characters when Distorting Chat

Untestet GriefPrevention Support
This commit is contained in:
Sn0wStorm
2014-05-06 20:45:40 +02:00
parent c7a4a36699
commit c4a0a8dbbe
5 changed files with 105 additions and 41 deletions
+6
View File
@@ -15,6 +15,7 @@ import org.bukkit.inventory.meta.PotionMeta;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.plugin.Plugin;
import com.dre.brewery.integration.GriefPreventionBarrel;
import com.dre.brewery.integration.LWCBarrel;
import com.dre.brewery.integration.LogBlockBarrel;
import com.dre.brewery.integration.WGBarrel;
@@ -114,6 +115,11 @@ public class Barrel {
}
}
if (P.p.getServer().getPluginManager().isPluginEnabled("GriefPrevention")) {
if (!GriefPreventionBarrel.checkAccess(player, spigot)) {
return false;
}
}
if (event != null) {
plugin = P.p.getServer().getPluginManager().getPlugin("LWC");