View difference between Paste ID: WJhtBAMN and nDJtCT2L
SHOW: | | - or go back to the newest paste.
1-
#=== Prevention ===
1+
2
#Minimum amount of blocks farm from X cord to tp to
3-
	version: 1.0
3+
	min.x: -2000
4-
	prefix: &a&lVOTE &8&l» &c
4+
#maximum amount of blocks farm from X cord to tp to
5-
	link: &a&lLINK &8&l» &c
5+
	max.x: 2000
6
#Minimum amount of blocks farm from Z cord to tp to
7-
	linktwo: &7Coming Soon
7+
	min.z: -2000
8-
	linkthree: &7Coming Soon
8+
#maximum amount of blocks farm from Z cord to tp to
9
	max.z: 2000
10-
On craft of golden apple:
10+
#Amount of time before the player will be allowed to use the command again
11-
    cancel the event
11+
	cooldown: 5 minutes
12-
    send "&e&l(!) &eYou are not allowed to craft a &eGolden Apple" to the player
12+
#Avoid spawning in lava, water and air
13-
On craft of ender chest:
13+
	avoid: air or water block or lava block
14-
    cancel event
14+
#To add worlds it would look like 
15-
    send "&e&l(!) &eYou are not allowed to craft an &dEnder Chest" to the player
15+
#	worlds: "world" or "world_nether" or "world_the_end"
16-
On craft of TNT:
16+
	worlds: "world3"
17-
    cancel event
17+
#Permission
18-
    send "&e&l(!) &eYou are not allowed to craft &fT&4N&fT" to the player
18+
	permission: randomtp.use
19
#No permission message
20-
#=== Enderpearl cooldown ===
20+
	PermMsg: &4You do not have permission to use this command!
21-
on rightclick with ender pearl:
21+
#Can not execute command in this world message
22-
	{time.%player%.lastused} was less than 15 seconds ago:
22+
	NoWorldMsg: &4You can’t use this command in this world!
23-
		set {time} to difference between {time.%player%.lastused} and now
23+
#Cooldown message
24-
		if {time} is less than 15 seconds:
24+
	SpamMsg: &cPlease do not spam this command! You must wait 5 minutes!
25-
			set {time} to difference between {time} and 15 seconds
25+
26-
			message "&e&l(!) &eYou cannot throw another enderpearl for &6%{time}%&f"
26+
27-
			cancel event
27+
Command /randomtp:
28-
			stop
28+
	description: Teleports player to random location not in water
29-
	set {time.%player%.lastused} to now
29+
	permission: {@permission}
30-
		if loop-player is wearing all iron armor:
30+
	permission message: {@PermMsg}
31-
			apply haste 2 to loop-player for 5 seconds
31+
	aliases: /rtp, /wild, /random
32
	trigger:
33-
#=======================================================
33+
		if world is not {@worlds}:
34-
#               IconicF | Factions GUI System          =
34+
			message "{@NoWorldMsg}"
35-
#              by Ghastblasters / Paid by MCMart       =
35+
		else:
36-
#=======================================================
36+
			if difference between {cooldowns::randomtp::%player%} and now < {@cooldown}:
37
				send "{@SpamMsg}"
38
			else:
39-
#on load:
39+
				set {_loc::old} to player's location
40-
    #loop all players:
40+
				while player's location is {_loc::old}:
41-
        #if player is op:
41+
					set {_loc::new} to location at random number between {@min.x} and {@max.x}, 0, random number between {@min.z} and {@max.z}
42-
            #send message "&8[&bFactions&3X&8]&7 loaded skript"
42+
					loop blocks above {_loc::new}:
43
						if loop-block and block above loop-block are air:
44
							if block under loop-block is not {@avoid}:
45-
Command /ff: 
45+
								set {_loc::new} to location of loop-block
46-
    permission: ic.claim
46+
								teleport player to {_loc::new}
47-
    trigger:
47+
								if light level at player <= 2:
48-
        open chest with 3 rows named "&8[&bFactions&3X&8]&7 Faction GUI" to player
48+
									set block at player to ground torch
49-
        wait 2 tick
49+
								set {cooldowns::randomtp::%player%} to now 
50-
        format slot 0 of player with gray stained glass pane named "&8Click to close" to close
50+
								stop loop
51-
        format slot 1 of player with gray stained glass pane named "&8Click to close" to close
51+
					wait 10 ticks
52-
        format slot 2 of player with gray stained glass pane named "&8Click to close" to close
52+
command /testlogins:
53-
        format slot 3 of player with gray stained glass pane named "&8Click to close" to close
53+
54-
        format slot 4 of player with gray stained glass pane named "&8Click to close" to close
54+
		send "&b%{logins}% &8- &7Unique Logins"
55-
        format slot 5 of player with gray stained glass pane named "&8Click to close" to close
55+
		send "&c%{online}% &8- &7Total Logins"
56-
        format slot 6 of player with gray stained glass pane named "&8Click to close" to close
56+
		stop
57-
        format slot 7 of player with gray stained glass pane named "&8Click to close" to close
57+
#Filler#
58-
        format slot 8 of player with gray stained glass pane named "&8Click to close" to close
58+
on quit:
59-
        format slot 9 of player with gray stained glass pane named "&8Click to close" to close
59+
	broadcast "&7[&c-&7] &7%player%"
60-
        format slot 10 of player with grass named "&2Teleport to factions home" to run [make player execute command "/f home"]
60+
on join:
61-
        format slot 11 of player with dirt named "&2Set factions home" to run [make player execute command "/f sethome"]
61+
	add 1 to {online}
62-
        format slot 12 of player with fence named "&6Claim faction land" to run [make player execute command "/ffclaim"]
62+
	broadcast "&7[&a+&7] &7%player% "
63-
        format slot 13 of player with paper named "&6Faction map" to run [make player execute command "/f map"]
63+
on first join:
64-
        format slot 14 of player with diamond sword named "&5Faction Stats" to run [make player execute command "/f who"]
64+
	wait 50 ticks
65-
        format slot 15 of player with torch named "&7Faction Help" to run [make player execute command "/f help"]
65+
	add 1 to {logins}
66-
        format slot 16 of player with 166 named "&cLeave Faction" to run [make player execute command "/f leave"]
66+
	execute console command "/spawn %player%"
67-
        format slot 17 of player with gray stained glass pane named "&8Click to close" to close
67+
	execute console command "/kit starter %player%"
68-
        format slot 18 of player with gray stained glass pane named "&8Click to close" to close
68+
	broadcast "&b%player% &7joined for the first time! &7(&b%{logins}%&7 Unique Logins)"