Safety: Make edithome, editwarp and sethome execute asynchronously

This commit is contained in:
William278 committed 2022-09-06 14:16:44 +03:00
1 parent 300a01a2c2
commit 4fce90dbbe
3 files changed
+4 -4

No files matched your search

@@ -21,7 +21,7 @@ public class SetHomeCommand extends CommandBase {
@Override
public void onExecute(@NotNull OnlineUser onlineUser, @NotNull String[] args) {
plugin.getDatabase().getHomes(onlineUser).thenAccept(homes -> {
plugin.getDatabase().getHomes(onlineUser).thenAcceptAsync(homes -> {
switch (args.length) {
case 0 -> {
if (homes.isEmpty()) {