command system
This commit is contained in:
parent
a8f6af2b37
commit
a891ab4d3a
11 changed files with 361 additions and 87 deletions
|
@ -24,6 +24,7 @@ import com.google.common.util.concurrent.ListenableFutureTask;
|
|||
import com.google.common.util.concurrent.ThreadFactoryBuilder;
|
||||
|
||||
import game.color.TextColor;
|
||||
import game.command.ScriptEnvironment;
|
||||
import game.dimension.Dimension;
|
||||
import game.dimension.Space;
|
||||
import game.entity.Entity;
|
||||
|
@ -107,6 +108,7 @@ public final class Server implements Runnable, IThreadListener {
|
|||
private final List<WorldServer> ticked = Lists.<WorldServer>newArrayList();
|
||||
private final List<Dimension> unload = Lists.<Dimension>newArrayList();
|
||||
private final Map<String, Position> warps = Maps.<String, Position>newTreeMap();
|
||||
private final ScriptEnvironment scriptEnv = new ScriptEnvironment(this);
|
||||
// private final String owner;
|
||||
private final File playerDir;
|
||||
private final File baseDir;
|
||||
|
@ -150,9 +152,9 @@ public final class Server implements Runnable, IThreadListener {
|
|||
// this.port = port;
|
||||
}
|
||||
|
||||
// public String getOwner() {
|
||||
// return this.owner;
|
||||
// }
|
||||
public ScriptEnvironment getScriptEnvironment() {
|
||||
return this.scriptEnv;
|
||||
}
|
||||
|
||||
public boolean isStarted() {
|
||||
return this.started;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue