1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-30 21:07:48 +01:00

Joined job will glow in browse window

This commit is contained in:
Zrips 2023-02-10 15:21:44 +02:00
parent b620dd2bd9
commit 233b234858
6 changed files with 225 additions and 219 deletions

View File

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>Jobs</groupId>
<artifactId>jobs</artifactId>
<version>5.1.0.0</version>
<version>5.1.2.0</version>
<name>Jobs</name>
<url>http://maven.apache.org</url>

View File

@ -162,7 +162,7 @@ public class GuiManager {
guiItem.setItemMeta(meta);
gui.addButton(new CMIGuiButton(job.getGuiSlot() >= 0 ? job.getGuiSlot() : pos, guiItem) {
CMIGuiButton button = new CMIGuiButton(job.getGuiSlot() >= 0 ? job.getGuiSlot() : pos, guiItem) {
@Override
public void click(GUIClickType type) {
@ -202,7 +202,13 @@ public class GuiManager {
break;
}
}
});
};
if (jPlayer.isInJob(job)) {
button.setGlowing();
}
gui.addButton(button);
i++;
}

View File

@ -587,7 +587,7 @@ public class LanguageManager {
c.get("command.promote.output.target", "You have been promoted %levelsgained% levels in %jobname%.");
c.get("command.exp.help.info", "Change the player exp for job.");
c.get("command.exp.help.args", "[playername] [jobname] set/add/take [amount]");
c.get("command.exp.help.args", "[playername] [jobname] set/add/take [amount](rand_[min]-[max]) (-s) (-sa)");
Jobs.getGCManager().getCommandArgs().put("exp", Arrays.asList("[playername]", "[jobname]", "set%%add%%take"));
c.get("command.exp.error.nojob", "&cThis player must first join a job.");
c.get("command.exp.output.target", "&eYour exp was changed for %jobname% &eand now you at &6%level%lvl &eand with &6%exp%exp.");