mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-01 23:13:48 +01:00
Update GuiManager.java
This commit is contained in:
parent
7cf1ba1ab7
commit
a4bc80bac3
@ -25,7 +25,7 @@ import com.gamingmesh.jobs.container.JobsPlayer;
|
|||||||
|
|
||||||
public class GuiManager {
|
public class GuiManager {
|
||||||
|
|
||||||
public HashMap<UUID, GuiInfoList> GuiList = new HashMap<UUID, GuiInfoList>();
|
public HashMap<UUID, GuiInfoList> GuiList = new HashMap<>();
|
||||||
|
|
||||||
public void CloseInventories() {
|
public void CloseInventories() {
|
||||||
for (Entry<UUID, GuiInfoList> one : GuiList.entrySet()) {
|
for (Entry<UUID, GuiInfoList> one : GuiList.entrySet()) {
|
||||||
@ -68,7 +68,7 @@ public class GuiManager {
|
|||||||
|
|
||||||
public Inventory CreateJobsGUI(Player player) {
|
public Inventory CreateJobsGUI(Player player) {
|
||||||
|
|
||||||
ArrayList<Job> JobsList = new ArrayList<Job>();
|
ArrayList<Job> JobsList = new ArrayList<>();
|
||||||
for (Job job : Jobs.getJobs()) {
|
for (Job job : Jobs.getJobs()) {
|
||||||
if (Jobs.getGCManager().getHideJobsWithoutPermission())
|
if (Jobs.getGCManager().getHideJobsWithoutPermission())
|
||||||
if (!Jobs.getCommandManager().hasJobPermission(player, job))
|
if (!Jobs.getCommandManager().hasJobPermission(player, job))
|
||||||
@ -117,7 +117,7 @@ public class GuiManager {
|
|||||||
break main;
|
break main;
|
||||||
Job job = JobsList.get(i);
|
Job job = JobsList.get(i);
|
||||||
|
|
||||||
ArrayList<String> Lore = new ArrayList<String>();
|
ArrayList<String> Lore = new ArrayList<>();
|
||||||
|
|
||||||
for (JobProgression onePJob : pJobs) {
|
for (JobProgression onePJob : pJobs) {
|
||||||
if (onePJob.getJob().getName().equalsIgnoreCase(job.getName()))
|
if (onePJob.getJob().getName().equalsIgnoreCase(job.getName()))
|
||||||
@ -198,7 +198,7 @@ public class GuiManager {
|
|||||||
|
|
||||||
int numjobs = JPlayer.getJobProgression().size();
|
int numjobs = JPlayer.getJobProgression().size();
|
||||||
|
|
||||||
List<ItemStack> items = new ArrayList<ItemStack>();
|
List<ItemStack> items = new ArrayList<>();
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (ActionType actionType : ActionType.values()) {
|
for (ActionType actionType : ActionType.values()) {
|
||||||
List<JobInfo> info = job.getJobInfo(actionType);
|
List<JobInfo> info = job.getJobInfo(actionType);
|
||||||
@ -206,7 +206,7 @@ public class GuiManager {
|
|||||||
if (info == null || info.isEmpty())
|
if (info == null || info.isEmpty())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
ArrayList<String> Lore = new ArrayList<String>();
|
ArrayList<String> Lore = new ArrayList<>();
|
||||||
Lore.add(ChatColor.translateAlternateColorCodes('&', "&e" + Jobs.getLanguage().getMessage("command.info.output." + actionType.getName().toLowerCase()
|
Lore.add(ChatColor.translateAlternateColorCodes('&', "&e" + Jobs.getLanguage().getMessage("command.info.output." + actionType.getName().toLowerCase()
|
||||||
+ ".info")));
|
+ ".info")));
|
||||||
int y = 1;
|
int y = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user