mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-02 22:38:06 +01:00
Merge pull request #1723 from FireML/player-saving
Save players after adjusting job progression via commands
This commit is contained in:
commit
85a052f855
@ -117,6 +117,9 @@ public class exp implements Cmd {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
jPlayer.setSaved(false);
|
||||||
|
jPlayer.save(true);
|
||||||
|
|
||||||
Player player = jPlayer.getPlayer();
|
Player player = jPlayer.getPlayer();
|
||||||
if (player == null) {
|
if (player == null) {
|
||||||
Language.sendMessage(sender, "general.give.output.notonline");
|
Language.sendMessage(sender, "general.give.output.notonline");
|
||||||
|
@ -110,6 +110,9 @@ public class level implements Cmd {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
jPlayer.setSaved(false);
|
||||||
|
jPlayer.save(true);
|
||||||
|
|
||||||
Player player = jPlayer.getPlayer();
|
Player player = jPlayer.getPlayer();
|
||||||
if (player != null)
|
if (player != null)
|
||||||
Language.sendMessage(player, "command.level.output.target", "%jobname%", job.getDisplayName(), "%level%", prog.getLevel(),
|
Language.sendMessage(player, "command.level.output.target", "%jobname%", job.getDisplayName(), "%level%", prog.getLevel(),
|
||||||
|
Loading…
Reference in New Issue
Block a user