Closed RozenFR closed 4 years ago
Hello can someone help me ? I've got some problem to make an api to link quests and jobs reborn.
`package me.rozen.questsreqAPI;
import java.util.List; import java.util.Map; import me.blackvein.quests.CustomRequirement; import org.bukkit.entity.Player;
import com.gamingmesh.jobs.Jobs; import com.gamingmesh.jobs.container.JobsPlayer;
public class questreq extends CustomRequirement {
public questreq() { this.setName("Jobs"); this.setAuthor("RozenFR"); this.addData("Job"); this.addData("Joblevel"); this.addDescription("Job", "Choisissez le métier :"); this.addDescription("Joblevel", "Entrer le niveau minimale requis :"); } @Override public boolean testRequirement(Player player, Map<String, Object> data) { JobsPlayer Job = Jobs.getPlayerManager().getJobsPlayer(player); int Joblevel = Integer.parseInt(""+"Joblevel"); int level = Jobs.getPlayerManager().getJobsPlayer(player).getTotalLevels(); if (Job.equals(data.get("Job"))) { if (level > Joblevel) { return true; } } return false; }
} `
Thank you for your future reply.
I close the thread someone reply on other website.
Hello can someone help me ? I've got some problem to make an api to link quests and jobs reborn.
`package me.rozen.questsreqAPI;
import java.util.List; import java.util.Map; import me.blackvein.quests.CustomRequirement; import org.bukkit.entity.Player;
import com.gamingmesh.jobs.Jobs; import com.gamingmesh.jobs.container.JobsPlayer;
public class questreq extends CustomRequirement {
} `
Thank you for your future reply.