Skip to content
This repository has been archived by the owner on Sep 29, 2019. It is now read-only.

Worldguard Expressions #36

Open
weberlepecheur opened this issue Nov 30, 2017 · 1 comment
Open

Worldguard Expressions #36

weberlepecheur opened this issue Nov 30, 2017 · 1 comment
Assignees
Labels

Comments

@weberlepecheur
Copy link

weberlepecheur commented Nov 30, 2017

Hey,

I want to use your wg expr from 1.6.3 but it doesn't work, or it's me ? ^^
Skript 2.2dev13b
Spigot 1.12.2
Sharpsk 1.6.3

WorldGuard 6.2.1

Code:

on right click:
	set {_sharpsk} to sharpsk region at player's location
	send "§6Name : %{_sharpsk}%"
	set {_owners::*} to sharpsk worldguard all owners of region "%{_sharpsk}%" in world "world"
	send "§aOwners : %{_owners::*}%"
	set {_owners2::*} to sharpsk worldguard all owners of region "ospone_weber_le_pecheur" in world "world"
	send "§dOwners2 : %{_owners2::*}%"

Results :
image

Expr. like (add | remove) (members | owners) works fine.

@Sharpjaws Sharpjaws self-assigned this Dec 6, 2017
@Sharpjaws Sharpjaws added the bug label Dec 6, 2017
@weberlepecheur
Copy link
Author

I found a way to fix this.

I have to add a player with this name, not this uuid otherwise is not found by sharpsk.

image

set {_region} to sharpsk region at player's location
set {_player} to "Svlat" parsed as offline player
sharpsk worldguard add owner player to region {_region} in "{@world}"
sharpsk worldguard add owner {_player} by uuid to region {_region} in "{@world}"	
set {_owner::*} to sharpsk all owners of region {_region} in "{@world}"
send "Owner: %{_owner::*}%"

image

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

No branches or pull requests

2 participants