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,9 +555,11 @@ public class Quester {
|
|||||||
((Player)player).sendMessage(q.getRequirements().getFailRequirements());
|
((Player)player).sendMessage(q.getRequirements().getFailRequirements());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (player.isOnline()) {
|
||||||
QuesterPostStartQuestEvent postEvent = new QuesterPostStartQuestEvent(this, q);
|
QuesterPostStartQuestEvent postEvent = new QuesterPostStartQuestEvent(this, q);
|
||||||
plugin.getServer().getPluginManager().callEvent(postEvent);
|
plugin.getServer().getPluginManager().callEvent(postEvent);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all objectives for a quest
|
* Get all objectives for a quest
|
||||||
|
@ -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