-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcore.sk
42 lines (41 loc) · 1.86 KB
/
core.sk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# ps some random stuff is scattered in here sorry
on join:
loop {usablePlots::*}:
if size of {usablePlots::*} >= 1:
set {_p} to a random element out of {usablePlots::*}
teleport player to {_p}
set {currentOwner::%{_p}%} to player
remove {_p} from {usablePlots::*}
else:
kick player due to "&cFull Server!"
on door open:
if player is in region "plots":
set {_p::*} to {plots::*}
loop {_p::*}:
if player is in region "%loop-value%":
if {currentOwner::%loop-value%} is not player:
if {roomie::%loop-value%::%player's uuid%} is false:
cancel event
message "&cYou don't have permission to use this."
on join:
if {firstJoin::%player u%} == "SET":
open chest with 2 rows named "&eLifeSim" to player
format slot 0, 1, 2, 3, 4, 5, 6, 7, 8 of player to blue stained glass pane named "Play!" to close [message "&eHave fun!"]
format slot 9, 10, 11, 12, 13, 14, 15, 16, 17 of player to cyan stained glass named "Shop!" to run [message "&cIncomplete!" to player]
command /perms <player>:
aliases: roommate, roomie, giveperms, giveguest:
trigger:
if {roomie::%arg-1%} == true:
set {roomie::%player's plot%::%arg-1's uuid%} to false
message "&e%arg-1% is no longer your roommate."
else:
set {roomie::%player's plot%::%arg-1's uuid%} to true
message "&e%arg-1% is now your roommate."
sendNotif(arg-1, "%player% has gave you Roommate at their plot.")
on quit:
loop all players:
delete {roomie::%loop-player's plot%::%player's uuid%}
add player's plot to {usablePlots::*}
delete {currentOwner::%player's plot%}
on join:
teleport player to {spawn}