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:
parent
2e1d9afc9f
commit
6051c78d21
@ -46,7 +46,8 @@ public class transfer implements Cmd {
|
|||||||
"%newjobname%", newjob.getDisplayName());
|
"%newjobname%", newjob.getDisplayName());
|
||||||
}
|
}
|
||||||
Language.sendMessage(sender, "general.admin.success");
|
Language.sendMessage(sender, "general.admin.success");
|
||||||
}
|
} else
|
||||||
|
Language.sendMessage(sender, "general.admin.error");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Language.sendMessage(sender, "general.admin.error");
|
Language.sendMessage(sender, "general.admin.error");
|
||||||
}
|
}
|
||||||
|
@ -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.info", "Transfer a player's job from an old job to a new job.");
|
||||||
c.get("command.transfer.help.args", "[playername] [oldjob] [newjob]");
|
c.get("command.transfer.help.args", "[playername] [oldjob] [newjob]");
|
||||||
Jobs.getGCManager().getCommandArgs().put("transfer", Arrays.asList("[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.info", "Promote the player X levels in a job.");
|
||||||
c.get("command.promote.help.args", "[playername] [jobname] [levels] (-cmd)");
|
c.get("command.promote.help.args", "[playername] [jobname] [levels] (-cmd)");
|
||||||
|
Loading…
Reference in New Issue
Block a user