Bump listener priority, change wording. Fixes PC-308
This commit is contained in:
parent
c172d226c4
commit
41846f835d
@ -400,13 +400,13 @@ public class Spawn extends MiniPlugin
|
|||||||
if (isInSpawn(victim))
|
if (isInSpawn(victim))
|
||||||
{
|
{
|
||||||
event.SetCancelled("Safe Zone");
|
event.SetCancelled("Safe Zone");
|
||||||
attemptNotify(attacker, "You cannot attack players who are in spawn!");
|
attemptNotify(attacker, "You cannot attack players who are in a safe zone!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (isInSpawn(attacker) && !isCombatTagged(attacker))
|
else if (isInSpawn(attacker) && !isCombatTagged(attacker))
|
||||||
{
|
{
|
||||||
event.SetCancelled("Safe Zone");
|
event.SetCancelled("Safe Zone");
|
||||||
attemptNotify(attacker, "You cannot attack untagged players while in spawn!");
|
attemptNotify(attacker, "You cannot attack untagged players while in a safe zone!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -529,7 +529,7 @@ public class DamageManager extends MiniPlugin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler (priority = EventPriority.MONITOR)
|
||||||
public void DamageSound(CustomDamageEvent event)
|
public void DamageSound(CustomDamageEvent event)
|
||||||
{
|
{
|
||||||
if (event.IsCancelled())
|
if (event.IsCancelled())
|
||||||
|
Loading…
Reference in New Issue
Block a user