Add Update Command

This commit is contained in:
RayzsYT committed 2024-07-09 22:41:50 +02:00
1 parent 96b678a3bc
commit c07f2d863b
1 file changed
+3 -1
@@ -176,7 +176,7 @@ public class CommandProcess {
case "update":
if(!PermissionUtil.hasPermissionWithResponse(sender, "update")) return;
if(!PermissionUtil.hasPermissionWithResponse(sender, "update_permissions")) return;
PermissionUtil.reloadPermissions();
sender.sendMessage(Storage.ConfigSections.Messages.UPDATE_PERMISSIONS.UPDATED);
@@ -628,6 +628,8 @@ public class CommandProcess {
switch (args.length) {
case 1:
if(PermissionUtil.hasPermission(sender, "update_permissions"))
suggestions.add("update");
if (!backend && PermissionUtil.hasPermission(sender, "stats") && Reflection.isProxyServer())
suggestions.add("stats");
if (!backend && PermissionUtil.hasPermission(sender, "notify")) suggestions.add("notify");