From e5c3670e0d011c303fc38b0fca077b06a1e4be1a Mon Sep 17 00:00:00 2001 From: Indyuce Date: Fri, 15 Jul 2022 10:47:22 +0200 Subject: [PATCH] framework for guild target restrictions --- .../Indyuce/mmocore/guild/RelationType.java | 19 +++++++++++++++++++ src/main/resources/config.yml | 8 ++++++++ 2 files changed, 27 insertions(+) create mode 100644 src/main/java/net/Indyuce/mmocore/guild/RelationType.java diff --git a/src/main/java/net/Indyuce/mmocore/guild/RelationType.java b/src/main/java/net/Indyuce/mmocore/guild/RelationType.java new file mode 100644 index 00000000..1277296c --- /dev/null +++ b/src/main/java/net/Indyuce/mmocore/guild/RelationType.java @@ -0,0 +1,19 @@ +package net.Indyuce.mmocore.guild; + +public enum RelationType { + + /** + * In the same guild + */ + ALLY, + + /** + * One of the two players has no guild + */ + NEUTRAL, + + /** + * + */ + ENEMY; +} diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index d7eb3cdb..1985a826 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -211,6 +211,14 @@ can-creative-cast: false # This replaces anvil inputs by chat inputs. use-chat-input: true +ability-targeting-options: + + # Prevent heals/buffs on players in a different guild + cant-heal-enemies: true + + # Prevent heals/buffs UNLESS the player is in your party/guild + cant-heal-neutrals: false + # Prevents mobs spawned from spawners from giving XP points. prevent-spawner-xp: true