Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.eternalcode.core.publish.Publisher;
import com.eternalcode.core.publish.event.EternalReloadEvent;
import com.google.common.base.Stopwatch;
import dev.rollczi.litecommands.annotations.async.Async;
import dev.rollczi.litecommands.annotations.command.Command;
import dev.rollczi.litecommands.annotations.context.Sender;
import dev.rollczi.litecommands.annotations.execute.Execute;
Expand Down Expand Up @@ -34,7 +33,6 @@ class EternalCoreCommand {
this.publisher = publisher;
}

@Async
@Execute(name = "reload")
@DescriptionDocs(description = "Reloads EternalCore configuration")
void reload(@Sender Audience audience) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.eternalcode.core.notice.NoticeService;
import com.eternalcode.core.util.DurationUtil;
import dev.rollczi.litecommands.annotations.argument.Arg;
import dev.rollczi.litecommands.annotations.async.Async;
import dev.rollczi.litecommands.annotations.command.Command;
import dev.rollczi.litecommands.annotations.context.Sender;
import dev.rollczi.litecommands.annotations.execute.Execute;
Expand Down Expand Up @@ -39,7 +38,6 @@ class JailCommand {
this.server = server;
}

@Async
@Execute(name = "setup")
@Permission("eternalcore.jail.setup")
@DescriptionDocs(description = "Define jail spawn area")
Expand All @@ -57,7 +55,6 @@ void executeJailSetup(@Sender Player player) {
.send();
}

@Async
@Execute(name = "setup")
@Permission("eternalcore.jail.setup")
@DescriptionDocs(description = "Define jail spawn area", arguments = "<location>")
Expand All @@ -75,7 +72,6 @@ void executeJailSetup(@Sender Player player, @Arg Location location) {
.send();
}

@Async
@Execute(name = "remove")
@Permission("eternalcore.jail.setup")
@DescriptionDocs(description = "Remove jail spawn area")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import com.eternalcode.core.notice.NoticeService;
import com.eternalcode.core.viewer.Viewer;
import dev.rollczi.litecommands.annotations.argument.Arg;
import dev.rollczi.litecommands.annotations.async.Async;
import dev.rollczi.litecommands.annotations.command.Command;
import dev.rollczi.litecommands.annotations.context.Sender;
import dev.rollczi.litecommands.annotations.execute.Execute;
Expand All @@ -28,7 +27,6 @@ public SetSlotCommand(
}

@Execute
@Async
@DescriptionDocs(description = "Set the max players on the server")
public void execute(@Sender Viewer viewer, @Arg int slots) {
if (slots <= 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.eternalcode.annotations.scan.command.DescriptionDocs;
import com.eternalcode.core.injector.annotations.Inject;
import com.eternalcode.core.notice.NoticeService;
import dev.rollczi.litecommands.annotations.async.Async;
import dev.rollczi.litecommands.annotations.command.Command;
import dev.rollczi.litecommands.annotations.context.Sender;
import dev.rollczi.litecommands.annotations.execute.Execute;
Expand All @@ -26,7 +25,6 @@ class SetSpawnCommand {
this.spawnService = spawnService;
}

@Async
@Execute
@DescriptionDocs(description = "Set spawn location")
void execute(@Sender Player player) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public Location getSpawnLocation() {
}

private boolean isSpawnValid() {
return !this.locationsConfiguration.spawn.isNoneWorld();
return this.locationsConfiguration.spawn != null
&& !this.locationsConfiguration.spawn.isNoneWorld();
}
}