View difference between Paste ID: aj6ZJgad and zUH5qCgr
SHOW: | | - or go back to the newest paste.
1
    #--------------#
2
 #  Added more repaired bugs #
3
# /lagg killmobs (Kills mobs)
4
# /lagg area <radius> (Removes entities within given radius)
5
 # And More! #
6
     #--------------#          
7
options:
8-
	Prefix: &6[&aClearLag&6]
8+
	Prefix: &8[&c&oFactions&4&oX&8]
9-
	PrefixWarning: &4[ClearLag]
9+
	PrefixWarning: &8[&b&oFactions&3&oX&8]
10-
	version: 1.0
10+
	version: 1.1
11-
	Author: flexgglo
11+
	Author: FrostedWeFall
12
13
	#----------#
14
	# Messages #
15
	#----------#
16
17-
	Warning: &cWarning Ground items will be removed in
17+
	Warning: &cClearing Lag In 
18
19
every 5 minutes:
20-
	broadcast "{@PrefixWarning} {@Warning} &71 &cminute!"
20+
	broadcast "{@PrefixWarning} {@Warning} &71 &cMinute!"
21
	wait 57 seconds
22-
	broadcast "{@PrefixWarning} {@Warning} &73 &cseconds!"
22+
	broadcast "{@PrefixWarning} {@Warning} &73 &cSeconds!"
23
	wait 1 seconds
24-
	broadcast "{@PrefixWarning} {@Warning} &72 &cseconds!"
24+
	broadcast "{@PrefixWarning} {@Warning} &72 &cSeconds!"
25
	wait 1 seconds
26-
	broadcast "{@PrefixWarning} {@Warning} &71 &cseconds!"
26+
	broadcast "{@PrefixWarning} {@Warning} &71 &cSeconds!"
27
	wait 1 seconds
28
	make server execute command "/clear lag"
29
30
command /lagg [<text>] [<integer>]:
31
	trigger:
32
		if arg-1 is not set:
33
			message "&3-----------(&b&lYou Clearlag Commands&3)-----------"
34
			message "&4- &8/&3Lagg &bclear &f- (Clears entities from your worlds)"
35
			message "&4- &8/&3Lagg &barea &f- (Clears entities from your radius)"
36
			message "&4- &8/&3Lagg &bkillmobs &f- (Clears mobs from your worlds)"
37
			message "&3-------------------------------------------"
38
39
		if player has permission "lagg.clear":
40
			if arg 1 is "clear":
41
				clear {_count}
42
				loop all arrows:
43
					clear loop-entity
44
					add 1 to {_count}
45
				loop entities:
46
					loop-entity is a dropped item
47
					clear loop-entity
48
					add 1 to {_count}
49
				if {_count} is not set:
50
					set {_count} to 0
51
				broadcast "{@Prefix} &bYou just removed &3%{_count}% &bentities!"
52
53
		if player has permission "lagg.killmobs":
54
			if arg 1 is "killmobs":
55
				broadcast "{@Prefix} &bMobs have been removed!"
56
				loop entities:
57
					if loop-entity is a creature:
58
						clear loop-entity
59
					if loop-entity is a slime:
60
						clear all slimes
61
62
		if arg 1 is "area":
63
			if arg 2 is not set:
64
				send "&cWrong usage &8/&7Lagg <area> <radius>"
65
66
		if player has permission "lagg.area":	
67
			if arg 1 is "area":
68
				if arg 2 is set:
69
					clear {_count}
70
					loop all arrows in radius arg-2 around player:
71
						clear loop-entity
72
						add 1 to {_count}
73
					loop entities in radius arg-2 around player:
74
						loop-entity is a dropped item
75
						clear loop-entity
76
						add 1 to {_count}
77
					if {_count} is not set:
78
						set {_count} to 0
79
					broadcast "{@Prefix} &3%{_count}% &bEntities have been removed within a radius of &3%arg-2%!"
80
command /clear [<text>]: 
81
	trigger:	
82
		if arg 1 is "lag":
83
			clear {_count}
84
			loop all arrows:
85
				clear loop-entity
86
				add 1 to {_count}
87
			loop entities:
88
				loop-entity is a dropped item
89
				clear loop-entity
90
				add 1 to {_count}
91
			if {_count} is not set:
92
				set {_count} to 0
93-
			broadcast "{@Prefix} &bRemoved &3%{_count}% &bEntities!"
93+
			broadcast "{@Prefix} &eRemoved &6%{_count}% &eEntities!"