mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Safety: Make edithome, editwarp and sethome execute asynchronously
This commit is contained in:
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()) {
|
||||
|
||||
Reference in new issue
Block a user