diff --git a/src/main/java/tsp/headdb/command/Command_headdb.java b/src/main/java/tsp/headdb/command/Command_headdb.java index 5246b31..6dd8057 100644 --- a/src/main/java/tsp/headdb/command/Command_headdb.java +++ b/src/main/java/tsp/headdb/command/Command_headdb.java @@ -153,6 +153,7 @@ public class Command_headdb implements CommandExecutor { Utils.sendMessage(sender, "Updating..."); Bukkit.getScheduler().runTaskAsynchronously(HeadDB.getInstance(), () -> HeadAPI.getDatabase().update()); + return true; } Utils.sendMessage(sender, " "); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 309bba7..c9bd682 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -23,6 +23,7 @@ permissions: headdb.favorites: true headdb.local: true headdb.tagsearch: true + headdb.update: true headdb.open: default: op headdb.search: @@ -34,4 +35,6 @@ permissions: headdb.local: default: op headdb.tagsearch: + default: op + headdb.update: default: op \ No newline at end of file