mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-11-26 18:39:43 -05:00
Add Update Command
This commit is contained in:
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");
|
||||
|
||||
Reference in new issue
Block a user