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:
parent
b620dd2bd9
commit
233b234858
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
||||
|
@ -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++;
|
||||
}
|
||||
|
||||
|
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user