mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-15 11:00:17 -07:00
Players can now get the quest cape at the current # of acquirable points
This commit is contained in:
parent
f0e40199be
commit
fb67c8be93
1 changed files with 2 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ import org.crandor.plugin.Plugin;
|
|||
*/
|
||||
@InitializablePlugin
|
||||
public final class QuestCapePlugin extends OptionHandler {
|
||||
final int MAX_QP = 63;
|
||||
|
||||
@Override
|
||||
public Plugin<Object> newInstance(Object arg) throws Throwable {
|
||||
|
|
@ -24,7 +25,7 @@ public final class QuestCapePlugin extends OptionHandler {
|
|||
|
||||
@Override
|
||||
public boolean handle(Player player, Node node, String option) {
|
||||
if (!player.getQuestRepository().hasCompletedAll()) {
|
||||
if (!(player.getQuestRepository().getPoints() == MAX_QP)) {
|
||||
player.getPacketDispatch().sendMessage("You cannot wear this " + node.getName().toLowerCase() + " yet.");
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue