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
@@ -20,7 +20,11 @@ public final class SimpleChatTowny extends JavaPlugin {
|
||||
simpleChat = (SimpleChat) Bukkit.getPluginManager().getPlugin("SimpleChat");
|
||||
|
||||
simpleChat.getContextManager().register("towny-town", (context) -> {
|
||||
return isInSameTown(context.getSender(), context.getTarget());
|
||||
if ((context.getValue() instanceof Boolean) && ((Boolean) context.getValue())) {
|
||||
return isInSameTown(context.getSender(), context.getTarget());
|
||||
}
|
||||
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user