adding signsupport for worlds

This commit is contained in:
Martin Olischläger 2023-04-28 18:40:04 +02:00
parent 52983b69c5
commit 65e3195128
2 changed files with 2 additions and 17 deletions
src/main/java/eu/mhsl/craftattack/worldmuseum

@ -38,19 +38,7 @@ public class NewPlayer extends Player {
return false;
}
public void setAllowMovement(boolean allowMovemenrt) {
this.allowMovemenrt = allowMovemenrt;
}
public void newTeleport(Point point) {
this.allowMovemenrt = false;
World world = (World) this.getInstance();
CompletableFuture.runAsync(
() -> world.loadOptionalChunk(point)
.thenRun(() -> this.teleport(new Pos(point))));
public void setAllowMovement(boolean allowMovement) {
this.allowMovemenrt = allowMovement;
}
}

@ -9,9 +9,6 @@ import net.minestom.server.entity.Player;
public class GamemodeCommand extends Command {
public GamemodeCommand() {
super("gamemode", "gm");
// setCondition((sender, commandString) -> sender.hasPermission("admin"));
addSyntax((sender, context) -> ((Player) sender).setGameMode(
context.get("target")),
ArgumentType.Enum("target", GameMode.class).setFormat(ArgumentEnum.Format.LOWER_CASED)