mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 07:49:03 +00:00
Quote Regex Characters when Distorting Chat
Untestet GriefPrevention Support
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user