1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-25 20:16:13 +01:00

Option to customize base command label in help page

This commit is contained in:
Zrips 2018-02-15 13:07:42 +02:00
parent 21a6852a1c
commit 8726052187
4 changed files with 11 additions and 4 deletions

View File

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

View File

@ -132,7 +132,7 @@ public class JobsCommands implements CommandExecutor {
}
private static String getUsage(String cmd) {
String cmdString = Jobs.getLanguage().getMessage("command.help.output.cmdFormat", "[command]", label + " " + cmd);
String cmdString = Jobs.getLanguage().getMessage("command.help.output.cmdFormat", "[command]", Jobs.getLanguage().getMessage("command.help.output.label") + " " + cmd);
String key = "command." + cmd + ".help.args";
if (Jobs.getLanguage().containsKey(key) && !Jobs.getLanguage().getMessage(key).isEmpty()) {
cmdString = cmdString.replace("[arguments]", " " + Jobs.getLanguage().getMessage(key));

View File

@ -147,6 +147,7 @@ public class LanguageManager {
c.get("command.help.output.info", "Type /jobs [cmd] ? for more information about a command.");
c.get("command.help.output.cmdUsage", "&2Usage: &7[command]");
c.get("command.help.output.label", "Jobs");
c.get("command.help.output.cmdInfoFormat", "[command] &f- &2[description]");
c.get("command.help.output.cmdFormat", "&7/[command]&f[arguments]");

View File

@ -1,7 +1,7 @@
name: Jobs
description: Jobs Plugin for the BukkitAPI
main: com.gamingmesh.jobs.Jobs
version: 4.4.0
version: 4.5.0
website: https://www.spigotmc.org/resources/jobs-reborn.4216/
author: phrstbrn
softdepend: [Vault, iConomy, MythicMobs, McMMO, WorldGuard, MyPet]
@ -183,4 +183,10 @@ permissions:
default: true
jobs.command.clearownership:
description: Grants access to the clearownership command
default: true
default: true
jobs.command.itembonus:
description: Grants access to the itembonus command
default: true
jobs.command.edititembonus:
description: Grants access to the edititembonus command
default: op