Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Worldedit Selections (optional) #15

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

pickardjoe
Copy link

Uses WorldEdit selections if WorldEdit is installed, and the player has the 'worldedit' privilege.

@@ -118,25 +118,52 @@ minetest.register_chatcommand("area_pos", {
end,
})

function areas.useWorldedit(playerName)
if worldedit then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Throws a warning if WorldEdit isn't installed.

@ShadowNinja
Copy link
Member

Sounds good, but commands like /area_pos will simply do nothing if WE is installed and you have the privilege.
The privilege issue is why I didn't do this in the first place.

@pyrollo
Copy link

pyrollo commented Feb 2, 2016

I was thinking of same feature but in different way :
Adding a command in worldedit to select region corresponding to an area ID, something like //p getarea 123

All access to the area positions are now done through functions.
@pickardjoe
Copy link
Author

Commit e93e5c0 modifies all access to the position storage to use functions. If a user a user with the worldedit privilege uses the /area_pos command, it will update the worldedit selection (being used by areas).

@codexp
Copy link

codexp commented May 21, 2018

If you have no WE privilege, you won't be able to set markers. And if you can't set markers there will be none? Is it still relevant to check WE privileges?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants