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:
parent
21a6852a1c
commit
8726052187
2
pom.xml
2
pom.xml
@ -5,7 +5,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>Jobs</groupId>
|
<groupId>Jobs</groupId>
|
||||||
<artifactId>jobs</artifactId>
|
<artifactId>jobs</artifactId>
|
||||||
<version>4.4.0</version>
|
<version>4.5.0</version>
|
||||||
<name>Jobs</name>
|
<name>Jobs</name>
|
||||||
<url>http://maven.apache.org</url>
|
<url>http://maven.apache.org</url>
|
||||||
<properties>
|
<properties>
|
||||||
|
@ -132,7 +132,7 @@ public class JobsCommands implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static String getUsage(String cmd) {
|
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";
|
String key = "command." + cmd + ".help.args";
|
||||||
if (Jobs.getLanguage().containsKey(key) && !Jobs.getLanguage().getMessage(key).isEmpty()) {
|
if (Jobs.getLanguage().containsKey(key) && !Jobs.getLanguage().getMessage(key).isEmpty()) {
|
||||||
cmdString = cmdString.replace("[arguments]", " " + Jobs.getLanguage().getMessage(key));
|
cmdString = cmdString.replace("[arguments]", " " + Jobs.getLanguage().getMessage(key));
|
||||||
|
@ -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.info", "Type /jobs [cmd] ? for more information about a command.");
|
||||||
c.get("command.help.output.cmdUsage", "&2Usage: &7[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.cmdInfoFormat", "[command] &f- &2[description]");
|
||||||
c.get("command.help.output.cmdFormat", "&7/[command]&f[arguments]");
|
c.get("command.help.output.cmdFormat", "&7/[command]&f[arguments]");
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
name: Jobs
|
name: Jobs
|
||||||
description: Jobs Plugin for the BukkitAPI
|
description: Jobs Plugin for the BukkitAPI
|
||||||
main: com.gamingmesh.jobs.Jobs
|
main: com.gamingmesh.jobs.Jobs
|
||||||
version: 4.4.0
|
version: 4.5.0
|
||||||
website: https://www.spigotmc.org/resources/jobs-reborn.4216/
|
website: https://www.spigotmc.org/resources/jobs-reborn.4216/
|
||||||
author: phrstbrn
|
author: phrstbrn
|
||||||
softdepend: [Vault, iConomy, MythicMobs, McMMO, WorldGuard, MyPet]
|
softdepend: [Vault, iConomy, MythicMobs, McMMO, WorldGuard, MyPet]
|
||||||
@ -183,4 +183,10 @@ permissions:
|
|||||||
default: true
|
default: true
|
||||||
jobs.command.clearownership:
|
jobs.command.clearownership:
|
||||||
description: Grants access to the clearownership command
|
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
|
Loading…
Reference in New Issue
Block a user