mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-01 07:03:55 +01:00
Don't count suicides as kills. Fixes #96.
We should not count suicides as kills. If the damager has the same UUID as the damaged player, it's not okay.
This commit is contained in:
parent
f3792b480c
commit
2a15eaf2fe
@ -506,6 +506,9 @@ public class PlayerListener implements Listener {
|
|||||||
okay = false;
|
okay = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (evt.getEntity().getUniqueId().equals(player.getUniqueId())) {
|
||||||
|
okay = false;
|
||||||
|
}
|
||||||
if (okay) {
|
if (okay) {
|
||||||
Quester quester = plugin.getQuester(player.getUniqueId());
|
Quester quester = plugin.getQuester(player.getUniqueId());
|
||||||
for (Quest quest : quester.currentQuests.keySet()) {
|
for (Quest quest : quester.currentQuests.keySet()) {
|
||||||
@ -525,6 +528,9 @@ public class PlayerListener implements Listener {
|
|||||||
okay = false;
|
okay = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (evt.getEntity().getUniqueId().equals(player.getUniqueId())) {
|
||||||
|
okay = false;
|
||||||
|
}
|
||||||
if (okay) {
|
if (okay) {
|
||||||
Quester quester = plugin.getQuester(player.getUniqueId());
|
Quester quester = plugin.getQuester(player.getUniqueId());
|
||||||
for (Quest quest : quester.currentQuests.keySet()) {
|
for (Quest quest : quester.currentQuests.keySet()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user