Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /claim [<number>,<number>]:
- trigger:
- set {_player} to "%player%"
- set {_name} to "%{player.team.name}%%{name.team.claims}%"
- set {_loc} to player's location
- set {_x} to ceil(x coord of {_loc})
- set {_y} to ceil(y coord of {_loc})
- if arg 1 is not set:
- set {_x1} to 16
- else:
- set {_x1} to ceil(arg 1 / 1)
- if arg 2 is not set:
- set {_z1} to 16
- else:
- set {_z1} to ceil(arg 2 / 1)
- set {_x_nw} to {_x} - {_x1}
- set {_z_nw} to {_z} - {_z1}
- set {_x_se} to {_x} + {_x1}
- set {_z_se} to {_z} + {_z1}
- set {_y_se} to 255
- set {_pos_nw} to "%{_x_nw}%,%{_y_nw}%,%{_z_nw}%"
- set {_pos_se} to "%{_x_se}%,%{_y_se}%,%{_z_se}%"
- set {thing} to "%{name.team.claims}%"
- set {hi} to 1
- set {name.team.claims} to {thing} + {hi}
- execute console command "/pex user %{_player}% add worldedit.selection.pos"
- execute console command "/pex user %{_player}% add worldguard.region.claim"
- execute console command "/pex user %{_player}% add worldguard.region.addmember.*"
- make command sender execute "//pos1 %{_pos_nw}%"
- make command sender execute "//pos2 %{_pos_se}%"
- make command sender execute "/rg claim %{_name}%"
- loop all players:
- if {loop-player.team.name} = {_player.team.name}:
- set {member} to loop-player
- make command sender execute "/rg addmember %{member}%"
Add Comment
Please, Sign In to add comment