mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 06:28:54 +00:00
Add WorldGuard hook/context
This commit is contained in:
1 parent
d5d066fcb6
commit
126df2c3e2
8 files changed
+97
-4
No files matched your search
@@ -5,7 +5,6 @@ repositories {
|
||||
|
||||
dependencies {
|
||||
compileOnly 'org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT'
|
||||
compileOnly 'com.github.MilkBowl:VaultAPI:1.7'
|
||||
compileOnly 'com.gmail.nossr50.mcMMO:mcMMO:2.1.130'
|
||||
|
||||
api project(':SimpleChat')
|
||||
|
||||
@@ -18,7 +18,11 @@ public final class SimpleChatMCMMO extends JavaPlugin {
|
||||
simpleChat = (SimpleChat) Bukkit.getPluginManager().getPlugin("SimpleChat");
|
||||
|
||||
simpleChat.getContextManager().register("mcmmo-party", (context) -> {
|
||||
return isInSameParty(context.getSender(), context.getTarget());
|
||||
if ((context.getValue() instanceof Boolean) && ((Boolean) context.getValue())) {
|
||||
return isInSameParty(context.getSender(), context.getTarget());
|
||||
}
|
||||
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user