adding signsupport for worlds
This commit is contained in:
parent
52983b69c5
commit
65e3195128
@ -38,19 +38,7 @@ public class NewPlayer extends Player {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAllowMovement(boolean allowMovemenrt) {
|
public void setAllowMovement(boolean allowMovement) {
|
||||||
this.allowMovemenrt = allowMovemenrt;
|
this.allowMovemenrt = allowMovement;
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void newTeleport(Point point) {
|
|
||||||
this.allowMovemenrt = false;
|
|
||||||
World world = (World) this.getInstance();
|
|
||||||
CompletableFuture.runAsync(
|
|
||||||
() -> world.loadOptionalChunk(point)
|
|
||||||
.thenRun(() -> this.teleport(new Pos(point))));
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,9 +9,6 @@ import net.minestom.server.entity.Player;
|
|||||||
public class GamemodeCommand extends Command {
|
public class GamemodeCommand extends Command {
|
||||||
public GamemodeCommand() {
|
public GamemodeCommand() {
|
||||||
super("gamemode", "gm");
|
super("gamemode", "gm");
|
||||||
|
|
||||||
// setCondition((sender, commandString) -> sender.hasPermission("admin"));
|
|
||||||
|
|
||||||
addSyntax((sender, context) -> ((Player) sender).setGameMode(
|
addSyntax((sender, context) -> ((Player) sender).setGameMode(
|
||||||
context.get("target")),
|
context.get("target")),
|
||||||
ArgumentType.Enum("target", GameMode.class).setFormat(ArgumentEnum.Format.LOWER_CASED)
|
ArgumentType.Enum("target", GameMode.class).setFormat(ArgumentEnum.Format.LOWER_CASED)
|
||||||
|
Reference in New Issue
Block a user