Mirror von
https://github.com/TheSilentPro/HeadDB.git
synchronisiert 2024-12-28 03:40:06 +01:00
Localized reload message + added permission check
Dieser Commit ist enthalten in:
Ursprung
04d5f28431
Commit
2f4fddbb69
@ -46,8 +46,12 @@ public class CommandHeadDB implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (sub.equalsIgnoreCase("reload") || sub.equalsIgnoreCase("r")) {
|
if (sub.equalsIgnoreCase("reload") || sub.equalsIgnoreCase("r")) {
|
||||||
|
if (!sender.hasPermission("headdb.reload")) {
|
||||||
|
Utils.sendMessage(sender, localization.getMessage("noPermission"));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
HeadDB.getInstance().getLocalization().load();
|
HeadDB.getInstance().getLocalization().load();
|
||||||
Utils.sendMessage(sender, "&aReloaded messages file!");
|
Utils.sendMessage(sender, localization.getMessage("reloadMessages"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@ noEconomy: "&7You received &e%d &7x &e%s&7!"
|
|||||||
purchasedHead: "&7You purchased &e%d &7x &e%s &7for &e%.2f&7!"
|
purchasedHead: "&7You purchased &e%d &7x &e%s &7for &e%.2f&7!"
|
||||||
notEnoughMoney: "&cYou do not have enough to purchase &e%d &cx &e%s&7."
|
notEnoughMoney: "&cYou do not have enough to purchase &e%d &cx &e%s&7."
|
||||||
free: "&7You received &e%d &7x &e%s &7for &efree&7!"
|
free: "&7You received &e%d &7x &e%s &7for &efree&7!"
|
||||||
|
reloadMessages: "&aReloaded messages file!"
|
||||||
|
|
||||||
menu:
|
menu:
|
||||||
main: "&c&lHeadDB &7(%size%)"
|
main: "&c&lHeadDB &7(%size%)"
|
||||||
|
@ -24,6 +24,7 @@ permissions:
|
|||||||
headdb.local: true
|
headdb.local: true
|
||||||
headdb.tagsearch: true
|
headdb.tagsearch: true
|
||||||
headdb.update: true
|
headdb.update: true
|
||||||
|
headdb.reload: true
|
||||||
headdb.open:
|
headdb.open:
|
||||||
default: op
|
default: op
|
||||||
headdb.search:
|
headdb.search:
|
||||||
@ -37,4 +38,6 @@ permissions:
|
|||||||
headdb.tagsearch:
|
headdb.tagsearch:
|
||||||
default: op
|
default: op
|
||||||
headdb.update:
|
headdb.update:
|
||||||
|
default: op
|
||||||
|
headdb.reload:
|
||||||
default: op
|
default: op
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren