Mirror von
https://github.com/TheSilentPro/HeadDB.git
synchronisiert 2024-12-27 11:20:05 +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 (!sender.hasPermission("headdb.reload")) {
|
||||
Utils.sendMessage(sender, localization.getMessage("noPermission"));
|
||||
return true;
|
||||
}
|
||||
HeadDB.getInstance().getLocalization().load();
|
||||
Utils.sendMessage(sender, "&aReloaded messages file!");
|
||||
Utils.sendMessage(sender, localization.getMessage("reloadMessages"));
|
||||
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!"
|
||||
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!"
|
||||
reloadMessages: "&aReloaded messages file!"
|
||||
|
||||
menu:
|
||||
main: "&c&lHeadDB &7(%size%)"
|
||||
|
@ -24,6 +24,7 @@ permissions:
|
||||
headdb.local: true
|
||||
headdb.tagsearch: true
|
||||
headdb.update: true
|
||||
headdb.reload: true
|
||||
headdb.open:
|
||||
default: op
|
||||
headdb.search:
|
||||
@ -37,4 +38,6 @@ permissions:
|
||||
headdb.tagsearch:
|
||||
default: op
|
||||
headdb.update:
|
||||
default: op
|
||||
headdb.reload:
|
||||
default: op
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren