Skip to content

/sk Command Rework #8050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: dev/feature
Choose a base branch
from
Draft
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
9 changes: 5 additions & 4 deletions src/main/java/ch/njol/skript/Skript.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import ch.njol.skript.registrations.Classes;
import ch.njol.skript.registrations.EventValues;
import ch.njol.skript.registrations.Feature;
import ch.njol.skript.skcommand.SkriptCommand;
import ch.njol.skript.test.runner.EffObjectives;
import ch.njol.skript.test.runner.SkriptAsyncJUnitTest;
import ch.njol.skript.test.runner.SkriptJUnitTest;
Expand Down Expand Up @@ -546,7 +547,6 @@ public void onEnable() {
// Use the updater, now that it has been configured to (not) do stuff
if (updater != null) {
CommandSender console = Bukkit.getConsoleSender();
assert console != null;
assert updater != null;
updater.updateCheck(console);
}
Expand All @@ -559,9 +559,10 @@ public void onEnable() {
}

PluginCommand skriptCommand = getCommand("skript");
assert skriptCommand != null; // It is defined, unless build is corrupted or something like that
skriptCommand.setExecutor(new SkriptCommand());
skriptCommand.setTabCompleter(new SkriptCommandTabCompleter());
assert skriptCommand != null; // It is defined, unless the build is corrupted or something like that
SkriptCommand commandHandler = new SkriptCommand();
skriptCommand.setExecutor(commandHandler);
skriptCommand.setTabCompleter(commandHandler);

// Load Bukkit stuff. It is done after platform check, because something might be missing!
new BukkitEventValues();
Expand Down
Loading