Procházet zdrojové kódy

Send bleed messages to the correct player

nossr50 před 6 roky
rodič
revize
4031674626

+ 1 - 1
src/main/java/com/gmail/nossr50/skills/swords/SwordsManager.java

@@ -56,7 +56,7 @@ public class SwordsManager extends SkillManager {
 
 
                 if (UserManager.getPlayer(defender).useChatNotifications()) {
                 if (UserManager.getPlayer(defender).useChatNotifications()) {
                     if(!BleedTimerTask.isBleeding(defender))
                     if(!BleedTimerTask.isBleeding(defender))
-                        NotificationManager.sendPlayerInformation(getPlayer(), NotificationType.SUBSKILL_MESSAGE, "Swords.Combat.Bleeding.Started");
+                        NotificationManager.sendPlayerInformation(defender, NotificationType.SUBSKILL_MESSAGE, "Swords.Combat.Bleeding.Started");
                 }
                 }
             }
             }