mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Added /lift.
This commit is contained in:
parent
633be176eb
commit
ce4b2810ff
@ -74,6 +74,7 @@ public class WorldEdit extends Plugin {
|
|||||||
commands.put("/editfill", "[ID] [Radius] <Depth> - Fill a hole");
|
commands.put("/editfill", "[ID] [Radius] <Depth> - Fill a hole");
|
||||||
commands.put("/editscript", "[Filename] <Args...> - Run a WorldEdit script");
|
commands.put("/editscript", "[Filename] <Args...> - Run a WorldEdit script");
|
||||||
commands.put("/editlimit", "[Num] - See documentation");
|
commands.put("/editlimit", "[Num] - See documentation");
|
||||||
|
commands.put("/lift", "Go up to the first free spot");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -345,8 +346,14 @@ public class WorldEdit extends Plugin {
|
|||||||
EditSession editSession, String[] split)
|
EditSession editSession, String[] split)
|
||||||
throws WorldEditException
|
throws WorldEditException
|
||||||
{
|
{
|
||||||
|
// Jump to the first free position
|
||||||
|
if (split[0].equalsIgnoreCase("/lift")) {
|
||||||
|
player.sendMessage(Colors.LightPurple + "There you go!");
|
||||||
|
teleportToStandPosition(player);
|
||||||
|
return true;
|
||||||
|
|
||||||
// Set edit position #1
|
// Set edit position #1
|
||||||
if (split[0].equalsIgnoreCase("/editpos1")) {
|
} else if (split[0].equalsIgnoreCase("/editpos1")) {
|
||||||
session.setPos1((int)Math.floor(player.getX()),
|
session.setPos1((int)Math.floor(player.getX()),
|
||||||
(int)Math.floor(player.getY()),
|
(int)Math.floor(player.getY()),
|
||||||
(int)Math.floor(player.getZ()));
|
(int)Math.floor(player.getZ()));
|
||||||
|
Loading…
Reference in New Issue
Block a user