View difference between Paste ID: wKA8ZPUK and iDp0pQw3
SHOW: | | - or go back to the newest paste.
1
# KitPvP Skript
2
3
command /kitpvp:
4
    trigger:
5
        if player is in world "KitPvP":
6
            send "§7 [§4KitPvP§7]§a Developer: LamboCreeper"
7
            send "§a               Commands:"
8
            send "§e/Kit <KIT> |§a Select A Kit"
9
        if player is in world "Hub":
10
            send "§c§lERROR:§a Only Avialible In World: KitPvP"
11
        if player is in world "Survival":
12
            send "§c§lERROR:§a Only Avialible In World: KitPvP"
13
14
on death of player:
15
    player's world is "KitPvP"
16
    set the death message to "§7[§4KitPvP§7]§a§l %player%§a Was Slain by§l %attacker%§a!"
17
18
command /Kit [<text>]:
19
    trigger:
20
        if player is in world "KitPvP":
21
            arg 1 is "1":
22
                if {kills.%player%} is higher than 4:
23
                    give 1 of 268 to the player
24
                    give 1 of 298 to the player
25
                    give 1 of 299 to the player
26
                    give 1 of 300 to the player
27
                    give 1 of 301 to the player
28
                    send "§7[§4KitPvP§7]§a Recived Kit §l1"
29
                else:
30
                    send "§7[§4KitPvP§7]§c§l Error: §aYou don't have enough kills."
31
            else if arg 1 is "2":
32
                if {kills.%player%} is higher than 9:
33
                    give 1 of 272 to the player
34
                    give 1 of 302 to the player
35
                    give 1 of 303 to the player
36
                    give 1 of 304 to the player
37
                    give 1 of 305 to the player
38
                    send "§7[§4KitPvP§7]§a Recived Kit §l2"
39
                else:
40
                    send "§7[§4KitPvP§7]§c§lError: §aYou don't have enough kills."
41
            else if arg 1 is "3":
42
                if {kills.%player%} is higher than 14:
43
                    give 1 of 267 to the player
44
                    give 1 of 306 to the player
45
                    give 1 of 307 to the player
46
                    give 1 of 308 to the player
47
                    give 1 of 309 to the player
48
                    send "§7[§4KitPvP§7]§a Recived Kit §l3"
49
                else:
50
                    send "§7[§4KitPvP§7]§c§lError: §aYou don't have enough kills."
51
            else if arg 1 is "4":
52
                if {kills.%player%} is higher than 19:
53
                    give 1 of 283 to the player
54
                    give 1 of 314 to the player
55
                    give 1 of 315 to the player
56
                    give 1 of 316 to the player
57
                    give 1 of 317 to the player
58
                    send "§7[§4KitPvP§7]§a Recived Kit §l4"
59
                else:
60
                    send "§7[§4KitPvP§7]§c§lError: §aYou don't have enough kills."
61
            else if arg 1 is "5":
62
                if {kills.%player%} is higher than 49:
63
                    give 1 of 276 to the player
64
                    give 1 of 310 to the player
65
                    give 1 of 311 to the player
66
                    give 1 of 312 to the player
67
                    give 1 of 313 to the player
68
                    send "§7[§4KitPvP§7]§a Recived Kit §l5"
69
                else:
70
                    send "§7[§4KitPvP§7]§c§lError: §aYou don't have enough kills."
71
            else:
72
                send "§7[KitPvP§7]§a You Have §l%{kills.%player%}%§a Kills"
73
                send "§e/kit 1 §a Only Avalible If You Have §l0+§a Kills"
74
                send "§e/kit 2 §a Only Avalible If You Have §l5+§a Kills"
75
                send "§e/kit 3 §a Only Avalible If You Have §l10+§a Kills"
76
                send "§e/kit 4 §a Only Avalible If You Have §l20+§a Kills"
77
                send "§e/kit 5 §a Only Avalible If You Have §l50+§a Kills"
78
                send "§9§m----------------------------------------------"
79
                send "§a              What Kits Contain:"
80
                send "aKit 1 = Leather Armor & Wooden Sword"
81
                send "aKit 2 = Chain Armor & Stone Sword"
82
                send "aKit 3 = Iron Armor & Iron Sword"
83
                send "aKit 4 = Gold Armor & Gold Sword"
84
                send "aKit 5 = Diamond Armor & Diamond Sword"
85
                
86
on death:
87
    if victim is in world "KitPvP":
88
        victim is a player
89
         nullify score of "%{kills.%attacker%}" in board of attacker
90
         add 1 to {kills.%player%}
91
         make score of "%{kills.%attacker%}" in board of attacker to 3
92
93
on rightclick on entity:
94
 if name of event-entity is "&a&lKit 1&b 5+":
95
  make player execute command "/kit 1"
96
97
on rightclick on entity:
98
 if name of event-entity is "&a&lKit 2&b 10+":
99
  make player execute command "/kit 2"
100
101
on rightclick on entity:
102
 if name of event-entity is "&a&lKit 3&b 15+":
103
  make player execute command "/kit 3"
104
105
on rightclick on entity:
106
 if name of event-entity is "&a&lKit 4&b 20+":
107
  make player execute command "/kit 4"
108
109
on rightclick on entity:
110
 if name of event-entity is "&a&lKit 5&b 50+":
111
  make player execute command "/kit 5"
112
113
command /kills:
114
        trigger:
115
                send "§a§m--§a> You Have §l%{kills.%player%}%§a Kills"
116
117
on right click on sign:
118
    if line 1 of block contains "KitPvP":
119
        if line 2 of block contains "Heal":
120
            heal the player
121
            remove 5 from {kills.%player%}
122
            send "§aYou were healed. Removed 5 Kills"
123
124
command /KitPvPAdmin [<text>] [<text>]:
125
        permission: Admin.SkKitPvP
126
        permission message: §fUnknown command. Type "/help" for help.
127
        usage: /KitPvPAdmin
128
        trigger:
129
                arg 1 is "addkill":
130
                        arg 1 is set:
131
                                add 1 to {kills.%argument 2%}
132
                                send "§aAdded 1 Kill."
133
                arg 1 is "removekill":
134
                        arg 1 is set:
135
                                remove 1 from {kills.%argument 2%}
136
                                send "§aRemoved 1 Kill"
137
138
on rightclick on sign:
139-
 if line 1 of block contains "KitPvP":
139+
        if line 1 of block contains "KitPvP":
140-
  if line 2 of block contains "ClearInv":
140+
                if line 2 of block contains "ClearInv":
141-
   clear the inventory of player
141+
                        clear the inventory of player
142
                        display board named "§4Kills" to loop-player
143-
# Scoreboard
143+
                        make score of "&1" in board of loop-player to 1
144
                        make score of "Kills:" in board of loop-player to  2
145-
   display board named "§4Kills" to loop-player
145+
                        make score of "%{kills.%loop-player%}" in board of loop-player to 3
146-
   make score of "&1" in board of loop-player to 1
146+
                        move display of loop-player to sidebar