Skip to content

Commit

Permalink
Add //placement world <x>,<y>,<z>
Browse files Browse the repository at this point in the history
  • Loading branch information
TomyLobo committed Mar 23, 2023
1 parent 830c736 commit e0efd13
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
import static com.google.common.base.Preconditions.checkNotNull;

public enum PlacementType {
WORLD("worldedit.toggleplace.world", "worldedit.toggleplace.world-offset") {
@Override
public BlockVector3 getPlacementPosition(RegionSelector selector, Actor actor) throws IncompleteRegionException {
return BlockVector3.ZERO;
}
},

PLAYER("worldedit.toggleplace.player", "worldedit.toggleplace.player-offset") {
@Override
public BlockVector3 getPlacementPosition(RegionSelector selector, Actor actor) throws IncompleteRegionException
Expand Down
2 changes: 2 additions & 0 deletions worldedit-core/src/main/resources/lang/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@
"worldedit.toggleplace.min-offset": "Now placing at an offset of ({0}, {1}, {2}) from the minimum of the current selection.",
"worldedit.toggleplace.max": "Now placing at the maximum of the current selection.",
"worldedit.toggleplace.max-offset": "Now placing at an offset of ({0}, {1}, {2}) from the maximum of the current selection.",
"worldedit.toggleplace.world": "Now placing at world origin.",
"worldedit.toggleplace.world-offset": "Now placing at ({0}, {1}, {2}).",
"worldedit.toggleplace.not-locatable": "Cannot toggle placing in this context.",
"worldedit.searchitem.too-short": "Enter a longer search string (len > 2).",
"worldedit.searchitem.either-b-or-i": "You cannot use both the 'b' and 'i' flags simultaneously.",
Expand Down

0 comments on commit e0efd13

Please sign in to comment.