mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-22 00:01:32 +01:00
Improve UUID checks, fixes #181. Bump version number
This commit is contained in:
parent
33d0fefb70
commit
ccd606e55b
2
pom.xml
2
pom.xml
@ -3,7 +3,7 @@
|
||||
|
||||
<groupId>me.blackvein.quests</groupId>
|
||||
<artifactId>quests</artifactId>
|
||||
<version>3.1.4</version>
|
||||
<version>3.1.5</version>
|
||||
<name>quests</name>
|
||||
<url>https://github.com/FlyingPikachu/Quests/</url>
|
||||
<packaging>jar</packaging>
|
||||
|
@ -448,7 +448,7 @@ public class PlayerListener implements Listener {
|
||||
* @since 3.1.4
|
||||
*/
|
||||
public void killMob(Entity damager, Entity target) {
|
||||
if (plugin.checkQuester(damager.getUniqueId()) == false) {
|
||||
if (plugin.checkQuester(damager.getUniqueId()) == true) {
|
||||
return;
|
||||
}
|
||||
//Ensure damager is Player AND not an NPC
|
||||
@ -542,7 +542,7 @@ public class PlayerListener implements Listener {
|
||||
* @since 3.1.4
|
||||
*/
|
||||
public void killPlayer(Entity damager, Entity target) {
|
||||
if (plugin.checkQuester(damager.getUniqueId()) == false) {
|
||||
if (plugin.checkQuester(damager.getUniqueId()) == true) {
|
||||
return;
|
||||
}
|
||||
//Ensure damager is player AND not an NPC
|
||||
|
@ -3655,7 +3655,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
public boolean checkQuester(UUID uuid) {
|
||||
for (String s : questerBlacklist) {
|
||||
try {
|
||||
UUID.fromString(s);
|
||||
uuid.equals(UUID.fromString(s));
|
||||
return true;
|
||||
} catch (IllegalArgumentException e) {
|
||||
getLogger().warning(s + " in config.yml is not a valid UUID for quester-blacklist");
|
||||
|
Loading…
Reference in New Issue
Block a user