mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-28 05:35:33 +01:00
Permit /questadmin commands on offline players, part 2. Per #1040
This commit is contained in:
parent
fb0b60257b
commit
a910247fa3
@ -555,8 +555,10 @@ public class Quester {
|
|||||||
((Player)player).sendMessage(q.getRequirements().getFailRequirements());
|
((Player)player).sendMessage(q.getRequirements().getFailRequirements());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
QuesterPostStartQuestEvent postEvent = new QuesterPostStartQuestEvent(this, q);
|
if (player.isOnline()) {
|
||||||
plugin.getServer().getPluginManager().callEvent(postEvent);
|
QuesterPostStartQuestEvent postEvent = new QuesterPostStartQuestEvent(this, q);
|
||||||
|
plugin.getServer().getPluginManager().callEvent(postEvent);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -18,7 +18,7 @@ import me.blackvein.quests.Quest;
|
|||||||
import me.blackvein.quests.Quester;
|
import me.blackvein.quests.Quester;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called after a quester starts a quest
|
* Called after an online quester starts a quest
|
||||||
*/
|
*/
|
||||||
public class QuesterPostStartQuestEvent extends QuesterEvent {
|
public class QuesterPostStartQuestEvent extends QuesterEvent {
|
||||||
private static final HandlerList handlers = new HandlerList();
|
private static final HandlerList handlers = new HandlerList();
|
||||||
|
Loading…
Reference in New Issue
Block a user