mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-20 22:42:10 +01:00
Allow command line arg to allow normal reload
This commit is contained in:
parent
a3cc380333
commit
4646f9b68f
@ -54,7 +54,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
if (!testPermission(sender)) return true;
|
if (!testPermission(sender)) return true;
|
||||||
|
|
||||||
+ // Paper start - Reload permissions.yml & require confirm
|
+ // Paper start - Reload permissions.yml & require confirm
|
||||||
+ boolean confirmed = false;
|
+ boolean confirmed = System.getProperty("LetMeReload") != null;
|
||||||
+ if (args.length == 1) {
|
+ if (args.length == 1) {
|
||||||
+ if (args[0].equalsIgnoreCase("permissions")) {
|
+ if (args[0].equalsIgnoreCase("permissions")) {
|
||||||
+ Bukkit.getServer().reloadPermissions();
|
+ Bukkit.getServer().reloadPermissions();
|
||||||
|
Loading…
Reference in New Issue
Block a user