mirror of
https://github.com/YouHaveTrouble/PreventStabby.git
synced 2026-05-12 13:26:56 +00:00
fix message being sent to wrong player
This commit is contained in:
@@ -103,7 +103,7 @@ public class PlayerManager {
|
|||||||
if (!smartCache.getPlayerData(victim).isPvpEnabled()) {
|
if (!smartCache.getPlayerData(victim).isPvpEnabled()) {
|
||||||
if (sendDenyMessage) {
|
if (sendDenyMessage) {
|
||||||
ConfigCache config = TogglePvp.getPlugin().getConfigCache();
|
ConfigCache config = TogglePvp.getPlugin().getConfigCache();
|
||||||
PluginMessages.sendActionBar(victim, config.getCannot_attack_victim());
|
PluginMessages.sendActionBar(attacker, config.getCannot_attack_victim());
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user