help command

This commit is contained in:
Sen 2025-03-25 10:13:15 +01:00
parent fc8603497a
commit fd84384f10
3 changed files with 68 additions and 0 deletions

View file

@ -11,6 +11,7 @@ import com.google.common.collect.Maps;
import game.Server;
import game.color.TextColor;
import game.command.commands.CommandHelp;
import game.command.commands.CommandSpawn;
import game.log.Log;
@ -62,6 +63,10 @@ public class ScriptEnvironment {
return this.server;
}
public Map<String, CachedExecutable> getExecutables() {
return this.executables;
}
public ScriptExecutor getExecutor() {
return this.currentExecutor;
}
@ -191,5 +196,7 @@ public class ScriptEnvironment {
});
this.registerExecutable(new CommandSpawn());
this.registerExecutable(new CommandHelp(this));
}
}