Only Player Methods For Now.
The variable 'player' represents the player who performed the command.
After 'player' variable you can type '.' then the method/statement.
Example: 'player.resetHealth()'. if there are any arguments for this method/statement you can put them inside the '(' and ')'.
Example: 'player.teleport(x, y, z, world)'
You can also use methods as an argument inside the '(' and ')':
'player.setHealth(player.getHealth * 2)'
for this case you don't have to type any '(' or ')'.
Current Methods:
- player.teleport(x,y,z,world) - teleports the player to this location.
- player.setHealth(number) - Sets the health of this player
- player.getHealth() - Gets the health of this player.
- player.setFlying(false/true) - Makes player fly forcefully.
- player.setAllowFly(false/true) - Allow player to toggle fly.
- player.setSpawnLocation(x, y, z, world) - Set the player spawn/bed location.
- player.setGamemode(GameMode) - Changes the player gamemode's forcefully.
- player.setSprinting(false/true) - Makes player sprint forcefully (without moving).
- player.setFlySpeed(fly speed(< 1)) - Sets the player fly speed.
- player.setWalkSpeed(walk speed (< 1))\ - Sets the player walk speed.
- player.getWalkSpeed()
- player.getFlySpeed()