View difference between Paste ID: keUvSUR0 and GigpzHbc
SHOW: | | - or go back to the newest paste.
1
variables:
2-
    {point} = 0
2+
    {point.%player%} = 0
3-
every second:
3+
every 1 seconds in "world":
4-
    if {point} is greater than or equal to 1:
4+
    loop all players:
5-
        remove 1 from {point}
5+
        if {point.%loop-player%} is greater than or equal to 1:
6
            remove 1 from {point.%loop-player%}
7
on sign change: 
8
    line 1 is "占領"
9-
on rightclick:
9+
10-
    if block is sign line 1 is "&4&l===占領ポイント===":
10+
on right click:
11-
    if {point} is 0:
11+
    clicked block is sign
12-
        add 3 emerald to player's inventory
12+
    line 1 is "&4&l===占領ポイント==="
13-
        broadcast "&b%player%さんが占領しました!"
13+
    if {point.%player%} is 0:
14-
        set {point} to 30
14+
        add 5 emerald to player's inventory
15
        broadcast "&b%player%さんがレッドポイントを占領しました!"
16-
        send "&cあと%{point}%秒&e待ってください"
16+
        set {point.%player%} to 180
17
    else:
18
        send "&cあと%{point.%player%}%秒&e待ってください"