adding signsupport for worlds
This commit is contained in:
parent
52983b69c5
commit
65e3195128
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)
|
||||
|
Reference in New Issue
Block a user