Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-24 01:50:06 +01:00
Added /lift.
Dieser Commit ist enthalten in:
Ursprung
633be176eb
Commit
ce4b2810ff
@ -74,6 +74,7 @@ public class WorldEdit extends Plugin {
|
||||
commands.put("/editfill", "[ID] [Radius] <Depth> - Fill a hole");
|
||||
commands.put("/editscript", "[Filename] <Args...> - Run a WorldEdit script");
|
||||
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)
|
||||
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
|
||||
if (split[0].equalsIgnoreCase("/editpos1")) {
|
||||
} else if (split[0].equalsIgnoreCase("/editpos1")) {
|
||||
session.setPos1((int)Math.floor(player.getX()),
|
||||
(int)Math.floor(player.getY()),
|
||||
(int)Math.floor(player.getZ()));
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren