improve @ and ~ commands

This commit is contained in:
Sen 2025-06-13 12:01:33 +02:00
parent 06517a0d34
commit e3edb3be8a
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
36 changed files with 159 additions and 124 deletions

View file

@ -132,6 +132,7 @@ public final class Server implements IThreadListener, Executor {
private KeyPair keyPair;
private WorldServer space;
private ChannelFuture endpoint;
private Position execPos;
private boolean running = true;
private boolean stopped;
@ -1168,19 +1169,19 @@ public final class Server implements IThreadListener, Executor {
return this.keyPair.getPrivate();
}
public void logConsole(String msg) {
public void log(String msg) {
Log.CONSOLE.info(msg);
}
public Position getExecPos() {
return null;
return this.execPos;
}
public Entity getPointedEntity() {
return null;
public void setExecPos(Position pos) {
this.execPos = pos;
}
public BlockPos getPointedPosition() {
return null;
public boolean isConsole() {
return true;
}
}