Update adremind.sk
This commit is contained in:
201
adremind.sk
201
adremind.sk
@@ -1,93 +1,146 @@
|
|||||||
#==============================================
|
#==============================================
|
||||||
# Ad Remind (Advertisement reminder for minehut)
|
|
||||||
# Skript Made By TheTrouper#6969
|
# Skript Made By TheTrouper#6969
|
||||||
# DO NOT DISTRIBUTE WITHOUT PREMISSION
|
# DO NOT DISTRIBUTE WITHOUT PREMISSION
|
||||||
# Copy#001
|
# Advertisement reminder for minehut
|
||||||
#==============================================
|
#==============================================
|
||||||
options:
|
options:
|
||||||
|
|
||||||
# The Prefix for all chat messages
|
# The Prefix for all chat messages
|
||||||
Prefix: &7[&aA&bR&7]
|
Prefix: &9Advertising>&7
|
||||||
|
|
||||||
# Set What Sound will be played 1 minute before kick
|
# Set What Sound will be played 1 minute before kick
|
||||||
Sound: "block.note_block.flute"
|
Sound: "block.note_block.pling"
|
||||||
|
|
||||||
# What will be broadcasted when the player is kicked
|
# What will be broadcasted when the player is kicked
|
||||||
Broadcast: &bHas just been sent back to the lobby to advertise, You too can set advertise reminders with /ad!
|
Broadcast: &bHas just been sent back to the lobby to advertise, You too can set advertise reminders with /ad!
|
||||||
|
|
||||||
# Set the message for what will be sent at the 1 minute warning
|
# Set when the players will get a warning before kick
|
||||||
Warning: &c&lWarning: &7You will be kicked in 1 minute to advertise!
|
Warning: 30
|
||||||
|
|
||||||
command ad <text> [<text>]:
|
command ad <text> [<text>]:
|
||||||
usage: /ad (Minehut rank)<default|vip|pro|legend|patron>
|
usage: /ad (Minehut rank) <default|vip|pro|legend|patron>
|
||||||
trigger:
|
trigger:
|
||||||
if arg-1 is "default":
|
if {firstad.%player's uuid%} is not true:
|
||||||
send "<link:https://discord.gg/u4jjBKeydu> {@Prefix} &bYou will be kicked in 8 minutes to go /ad"
|
set {firstad.%player's uuid%} to true
|
||||||
wait 7 minutes
|
send "{@Prefix} We have detected this to be your first time running that command! This command is meant to be used &l&nafter&r&7 going to the minehut hub, advertising then comming back. Go advertise and when you log back in, set your timer."
|
||||||
play sound {@Sound} to player
|
else:
|
||||||
send "<link:https://discord.gg/u4jjBKeydu> {@Prefix} {@Warning}" to player
|
if arg 1 is "yes":
|
||||||
wait 1 minute
|
kick player due to "{@Prefix} You have been sent to the lobby to advertise!"
|
||||||
broadcast "<link:https://discord.gg/u4jjBKeydu>{@Prefix} &c%player% {@Broadcast}"
|
broadcast "{@Prefix} %player% has been sent back to the lobby to advertise! You can set ad reminders with /ad <your minehut rank>"
|
||||||
kick player
|
set {timer.%player's uuid%} to 0
|
||||||
else if arg-1 is "vip":
|
else if arg 1 is "no":
|
||||||
send "<link:https://discord.gg/u4jjBKeydu>{@Prefix} &bYou will be kicked in 7 minutes to go /ad"
|
send "{@Prefix} You have &cCanceled&7 the advertisement reminding timer!"
|
||||||
wait 6 minutes
|
set {timer.%player's uuid%} to 0
|
||||||
play sound {@Sound} to player
|
else if arg 1 is "auto":
|
||||||
send "<link:https://discord.gg/u4jjBKeydu>{@Prefix} {@Warning} &7[Made By TheTrouper##6969]" to player
|
if {autoad.%player's uuid%} is true:
|
||||||
wait 1 minute
|
set {autoad.%player's uuid%} to false
|
||||||
broadcast "<link:https://discord.gg/u4jjBKeydu>{@Prefix} &c%player% {@Broadcast} &7[Made By TheTrouper##6969]"
|
send "{@Prefix} Set AutoAd to &cfalse&7! (You wont be kicked automaticaly)"
|
||||||
kick player
|
else:
|
||||||
else if arg-1 is "pro":
|
set {autoad.%player's uuid%} to true
|
||||||
send "<link:https://discord.gg/u4jjBKeydu>{@Prefix} &bYou will be kicked in 5 minutes to go /ad"
|
send "Set AutoAd to &aTrue&7! (You will be kicked automaticaly)"
|
||||||
wait 4 minutes
|
|
||||||
play sound {@Sound} to player
|
else if arg 1 is "default":
|
||||||
send "<link:https://discord.gg/u4jjBKeydu>{@Prefix} {@Warning} &7[Made By TheTrouper##6969]" to player
|
send "{@Prefix} You have enabled the &e%arg-1%&7 advertisment remind timer!"
|
||||||
wait 1 minute
|
set {timer.%player's uuid%} to 960
|
||||||
broadcast "<link:https://discord.gg/u4jjBKeydu>{@Prefix} &c%player% {@Broadcast} &7"
|
loop {timer.%player's uuid%} times:
|
||||||
kick player
|
if {timer.%player's uuid%} is {@Warning}:
|
||||||
else if arg-1 is "legend":
|
play sound {@Sound} to player
|
||||||
send "<link:https://discord.gg/u4jjBKeydu>{@Prefix} &bYou will be kicked in 3 minutes to go /ad"
|
send "{@Prefix} You will be sent back to the lobby in {@Warning} seconds to go advertise!"
|
||||||
wait 2 minutes
|
if {timer.%player's uuid%} = 1:
|
||||||
play sound {@Sound} to player
|
if {autoad.%player's uuid%} is true:
|
||||||
send "<link:https://discord.gg/u4jjBKeydu>{@Prefix} {@Warning}" to player
|
play sound {@Sound} to player
|
||||||
wait 1 minute
|
execute player command "/ad yes"
|
||||||
broadcast "<link:https://discord.gg/u4jjBKeydu>{@Prefix} &c%player% {@Broadcast}"
|
else:
|
||||||
kick player
|
play sound {@Sound} to player
|
||||||
else if arg-1 is "patron":
|
send "{@Prefix} This is your reminder to go advertise in the minehut lobby Click Yes to go to the hub, click No to cancel!"
|
||||||
send "<link:https://discord.gg/u4jjBKeydu>{@Prefix} &bYou will be kicked in 1 minute to go /ad"
|
send "<command:/ad yes>&a&l[Yes] <command:/ad no>&c&l[No]"
|
||||||
wait 1 minutes
|
|
||||||
play sound {@Sound} to player
|
remove 1 from {timer.%player's uuid%}
|
||||||
send "<link:https://discord.gg/u4jjBKeydu>{@Prefix} {@Warning}" to player
|
wait 1 second
|
||||||
wait 10 seconds
|
else if arg 1 is "vip":
|
||||||
broadcast "<link:https://discord.gg/u4jjBKeydu>{@Prefix} &c%player% {@Broadcast}"
|
send "{@Prefix} You have enabled the &e%arg-1%&7 advertisment remind timer!"
|
||||||
kick player
|
set {timer.%player's uuid%} to 840
|
||||||
else if arg-1 is "test":
|
loop {timer.%player's uuid%} times:
|
||||||
send "<link:https://discord.gg/u4jjBKeydu>{@Prefix} &bYou will be fake kicked in TESTING ONLY seconds (10) to go /ad &7[Made By TheTrouper##6969]"
|
if {timer.%player's uuid%} is {@Warning}:
|
||||||
wait 10 seconds
|
play sound {@Sound} to player
|
||||||
play sound {@Sound} to player
|
send "{@Prefix} You will be sent back to the lobby in {@Warning} seconds to go advertise!"
|
||||||
send "<link:https://discord.gg/u4jjBKeydu>{@Prefix} TESTING ONLY you will be kicked in 10 seconds" to player
|
if {timer.%player's uuid%} = 1:
|
||||||
wait 10 seconds
|
if {autoad.%player's uuid%} is true:
|
||||||
broadcast "<link:https://discord.gg/u4jjBKeydu>{@Prefix} &c%player% has been not kicked This is for testing only {@Broadcast}"
|
play sound {@Sound} to player
|
||||||
send "&c&lyou would have been kicked but this is just a test"
|
execute player command "/ad yes"
|
||||||
else if arg-1 is "ogrestupe":
|
else:
|
||||||
if length of arg-2 >= 80:
|
play sound {@Sound} to player
|
||||||
set {l.%player%} to length of arg-2
|
send "{@Prefix} This is your reminder to go advertise in the minehut lobby Click Yes to go to the hub, click No to cancel!"
|
||||||
send "Ad message is too long (%{l.%player%}% Characters)"
|
send "<command:/ad yes>&a&l[Yes] <command:/ad no>&c&l[No]"
|
||||||
else:
|
|
||||||
send "&d[AD] &6[Legend] %player%&r: /join ogrestupe %colored arg-2%"
|
remove 1 from {timer.%player's uuid%}
|
||||||
|
wait 1 second
|
||||||
|
else if arg 1 is "pro":
|
||||||
|
send "{@Prefix} You have enabled the &e%arg-1%&7 advertisment remind timer!"
|
||||||
|
set {timer.%player's uuid%} to 600
|
||||||
|
loop {timer.%player's uuid%} times:
|
||||||
|
if {timer.%player's uuid%} is {@Warning}:
|
||||||
|
play sound {@Sound} to player
|
||||||
|
send "{@Prefix} You will be sent back to the lobby in {@Warning} seconds to go advertise!"
|
||||||
|
if {timer.%player's uuid%} = 1:
|
||||||
|
if {autoad.%player's uuid%} is true:
|
||||||
|
play sound {@Sound} to player
|
||||||
|
execute player command "/ad yes"
|
||||||
|
else:
|
||||||
|
play sound {@Sound} to player
|
||||||
|
send "{@Prefix} This is your reminder to go advertise in the minehut lobby Click Yes to go to the hub, click No to cancel!"
|
||||||
|
send "<command:/ad yes>&a&l[Yes] <command:/ad no>&c&l[No]"
|
||||||
|
|
||||||
|
remove 1 from {timer.%player's uuid%}
|
||||||
|
wait 1 second
|
||||||
|
else if arg 1 is "legend":
|
||||||
|
send "{@Prefix} You have enabled the &e%arg-1%&7 advertisment remind timer!"
|
||||||
|
set {timer.%player's uuid%} to 360
|
||||||
|
loop {timer.%player's uuid%} times:
|
||||||
|
if {timer.%player's uuid%} is {@Warning}:
|
||||||
|
play sound {@Sound} to player
|
||||||
|
send "{@Prefix} You will be sent back to the lobby in {@Warning} seconds to go advertise!"
|
||||||
|
if {timer.%player's uuid%} = 1:
|
||||||
|
if {autoad.%player's uuid%} is true:
|
||||||
|
play sound {@Sound} to player
|
||||||
|
execute player command "/ad yes"
|
||||||
|
else:
|
||||||
|
play sound {@Sound} to player
|
||||||
|
send "{@Prefix} This is your reminder to go advertise in the minehut lobby Click Yes to go to the hub, click No to cancel!"
|
||||||
|
send "<command:/ad yes>&a&l[Yes] <command:/ad no>&c&l[No]"
|
||||||
|
|
||||||
|
remove 1 from {timer.%player's uuid%}
|
||||||
|
wait 1 second
|
||||||
|
else if arg 1 is "patron":
|
||||||
|
send "{@Prefix} You have enabled the &e%arg-1%&7 advertisment remind timer!"
|
||||||
|
set {timer.%player's uuid%} to 120
|
||||||
|
loop {timer.%player's uuid%} times:
|
||||||
|
if {timer.%player's uuid%} is {@Warning}:
|
||||||
|
play sound {@Sound} to player
|
||||||
|
send "{@Prefix} You will be sent back to the lobby in {@Warning} seconds to go advertise!"
|
||||||
|
if {timer.%player's uuid%} = 1:
|
||||||
|
if {autoad.%player's uuid%} is true:
|
||||||
|
play sound {@Sound} to player
|
||||||
|
execute player command "/ad yes"
|
||||||
|
else:
|
||||||
|
play sound {@Sound} to player
|
||||||
|
send "{@Prefix} This is your reminder to go advertise in the minehut lobby Click Yes to go to the hub, click No to cancel!"
|
||||||
|
send "<command:/ad yes>&a&l[Yes] <command:/ad no>&c&l[No]"
|
||||||
|
|
||||||
|
remove 1 from {timer.%player's uuid%}
|
||||||
|
wait 1 second
|
||||||
|
else if arg 1 is "remaining":
|
||||||
|
send "{@Prefix} You have &a%{timer.%player's uuid%}% seconds&7 Remaining before you can advertise again!"
|
||||||
|
else if arg 1 is "ogrestupe":
|
||||||
|
send "{@Prefix} Testing your Advertisement... (HEX DOES NOT WORK)"
|
||||||
|
wait 20 ticks
|
||||||
|
if length of arg 2 is less than 80:
|
||||||
|
send "&d[AD]&6 [LEGEND] %player%&r: %colored arg 2%" to player
|
||||||
|
else:
|
||||||
|
send "{@Prefix} Advertisement too long! (%length of arg 2%)"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
on tab complete:
|
on tab complete:
|
||||||
if event-string contains "/ad":
|
if event-string contains "/ad":
|
||||||
set tab completions of position 1 to "default", "vip", "pro", "legend", "patron" and "ogrestupe"
|
set tab completions of position 1 to "default", "vip", "pro", "legend", "patron", "remaining" and "ogrestupe"
|
||||||
|
|
||||||
|
|
||||||
# Ver: 1.2
|
|
||||||
# Changelog:
|
|
||||||
# 1.0:
|
|
||||||
# Arguments Added
|
|
||||||
# 1.1:
|
|
||||||
# Tab Completer Added
|
|
||||||
# 1.2:
|
|
||||||
# Options Section Added
|
|
||||||
# Warning added before kick
|
|
||||||
# Test mode added
|
|
||||||
|
|||||||
Reference in New Issue
Block a user