mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-15 15:28:36 +01:00
Fix retaliation combat and make the message nicer to see
This commit is contained in:
parent
e2f80811ff
commit
4af9da10c5
@ -245,7 +245,7 @@ public class DisguiseListener implements Listener {
|
||||
|
||||
if (!attacker.hasPermission("libsdisguises." + (pvp ? "pvp" : "pve")) &&
|
||||
!attacker.hasPermission("libsdisguises." + (pvp ? "pvp" : "pve"))) {
|
||||
if (!DisguiseConfig.isRetaliationCombat() || !canRetaliate(event.getEntity())) {
|
||||
if (!DisguiseConfig.isRetaliationCombat() || !canRetaliate(attacker)) {
|
||||
Disguise[] disguises = DisguiseAPI.getDisguises(attacker);
|
||||
|
||||
if (disguises.length > 0) {
|
||||
@ -273,10 +273,8 @@ public class DisguiseListener implements Listener {
|
||||
}
|
||||
|
||||
if (!event.isCancelled() && DisguiseConfig.isRetaliationCombat()) {
|
||||
if (canRetaliate(event.getEntity())) {
|
||||
setRetaliation(event.getEntity());
|
||||
setRetaliation(attacker);
|
||||
}
|
||||
setRetaliation(event.getEntity());
|
||||
setRetaliation(attacker);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -245,7 +245,7 @@ public enum LibsMsg {
|
||||
ChatColor.GOLD + "Lib's Disguises permission check, success. Pig disguise should be usable!"),
|
||||
LIBS_PERM_CHECK_FAIL(
|
||||
ChatColor.GOLD + "Lib's Disguises permission check, fail. Your permission plugin isn't compliant!"),
|
||||
CANT_ATTACK_DISGUISED(ChatColor.RED + "No PvP while disguised!"),
|
||||
CANT_ATTACK_DISGUISED(ChatColor.RED + "Cannot fight while disguised!"),
|
||||
CANT_ATTACK_DISGUISED_RECENTLY(ChatColor.RED + "You were disguised recently! Can't attack yet!"),
|
||||
SWITCH_WORLD_DISGUISE_REMOVED(ChatColor.RED + "Disguise removed as you've switched worlds!"),
|
||||
ACTION_BAR_MESSAGE(ChatColor.GOLD + "Currently disguised as %s");
|
||||
|
Loading…
Reference in New Issue
Block a user