1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 05:55:27 +01:00

Feedback when transfer job isn't successful

This commit is contained in:
Zrips 2023-08-29 13:43:07 +03:00
parent 2e1d9afc9f
commit 6051c78d21
2 changed files with 3 additions and 2 deletions

View File

@ -46,7 +46,8 @@ public class transfer implements Cmd {
"%newjobname%", newjob.getDisplayName());
}
Language.sendMessage(sender, "general.admin.success");
}
} else
Language.sendMessage(sender, "general.admin.error");
} catch (Exception e) {
Language.sendMessage(sender, "general.admin.error");
}

View File

@ -580,7 +580,7 @@ public class LanguageManager {
c.get("command.transfer.help.info", "Transfer a player's job from an old job to a new job.");
c.get("command.transfer.help.args", "[playername] [oldjob] [newjob]");
Jobs.getGCManager().getCommandArgs().put("transfer", Arrays.asList("[playername]", "[oldjob]", "[newjob]"));
c.get("command.transfer.output.target", "You have been transferred from %oldjobname% to %newjobname%.");
c.get("command.transfer.output.target", "&fYou have been transferred from %oldjobname% &fto %newjobname%.");
c.get("command.promote.help.info", "Promote the player X levels in a job.");
c.get("command.promote.help.args", "[playername] [jobname] [levels] (-cmd)");