mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-21 18:15:32 +01:00
Ensure UUID is not null before script, fixes #2127
This commit is contained in:
parent
3eb180a36e
commit
d76082d484
@ -31,6 +31,10 @@ public class DenizenTrigger {
|
||||
}
|
||||
if (plugin.getDependencies().getDenizenApi().containsScript(scriptName)) {
|
||||
if (plugin.getDependencies().getCitizens() != null) {
|
||||
if (uuid == null) {
|
||||
plugin.getLogger().severe("NPC UUID was null for Denizen script named " + scriptName);
|
||||
return false;
|
||||
}
|
||||
final NPC npc = plugin.getDependencies().getCitizens().getNPCRegistry().getByUniqueId(uuid);
|
||||
plugin.getDependencies().getDenizenApi().runTaskScript(scriptName, quester.getPlayer(), npc);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user