mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-24 11:38:42 +01:00
Merge pull request #112 from HexagonMC/fix/suicice-kills
Don't count suicides as kills, fixes #96
This commit is contained in:
commit
4096ca0ba5
@ -506,6 +506,9 @@ public class PlayerListener implements Listener {
|
||||
okay = false;
|
||||
}
|
||||
}
|
||||
if (evt.getEntity().getUniqueId().equals(player.getUniqueId())) {
|
||||
okay = false;
|
||||
}
|
||||
if (okay) {
|
||||
Quester quester = plugin.getQuester(player.getUniqueId());
|
||||
for (Quest quest : quester.currentQuests.keySet()) {
|
||||
@ -525,6 +528,9 @@ public class PlayerListener implements Listener {
|
||||
okay = false;
|
||||
}
|
||||
}
|
||||
if (evt.getEntity().getUniqueId().equals(player.getUniqueId())) {
|
||||
okay = false;
|
||||
}
|
||||
if (okay) {
|
||||
Quester quester = plugin.getQuester(player.getUniqueId());
|
||||
for (Quest quest : quester.currentQuests.keySet()) {
|
||||
|
Loading…
Reference in New Issue
Block a user