Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #--------------------------------------------------------------------------------
- # (Ban Skript)
- # Credit: 70sOn7
- #
- # Do not claim this, as it is public and made by me.
- #
- # Commands:
- #
- # /ban - Bans a player
- # /ac - Shows all AntiCheat Related options
- #
- #
- #
- # Dependencies:
- #
- # Skript
- # (https://dev.bukkit.org/projects/skript)
- #
- #
- #
- # Contact Me:
- #
- # Something wrong? Contact me via discord, 70sOn7#9245
- # Also I would love suggestions on other things to do!
- #
- # [This Part Affects Nothing]
- #--------------------------------------------------------------------------------
- # Customization Options
- #------------------------------------------------------------------------------
- # Customize these as these are the main essentials you'll use for this!
- #
- #<><><><><><><><><><><><><><><><><><>
- options:
- servername: ServerNameHere
- command: BanCommand
- command2: BanCommand2
- banpermission: BanPermission
- command3: BlackListCommand
- # DO NOT CHANGE
- version: 1.1
- #<><><><><><><><><><><><><><><><><><>
- #
- # Put your server name where it says "ServerNameHere"
- # Put the command to ban people where it says "BanCommand"
- # Put another command to ban people where "BanCommand2" If you just want one command. Leave it blank!
- # Put your permission you want for the command in "BanPermission" place
- #--------------------------------------------------------------------------------
- on join:
- set {_ver} to text from URL "https://pastebin.com/raw/dgtXejHS"
- if "%{_ver}%" is not equal to "%{@version}%":
- send ""
- send "&e(Ban Skript)"
- send " &7By: 70sOn7"
- send " &7Current Version: {@version}"
- send " &7Newest Version: &aAvailable"
- send " &7Link: <link:https://pastebin.com/dgtXejHS>&bhttps://pastebin.com/raw/dgtXejHS<reset>"
- send ""
- command /{@command} [<offlineplayer>] [<number>] [<text>] [<text>]:
- aliases: {@command2}
- trigger:
- if player has permission "{@banpermission}":
- if arg-1 is not set:
- send "&e/ban (Player) (Integer) (Time Amount) (Reason)"
- send " &7Ex: /ban Timmy103 3 Days Disrespect"
- stop
- if arg-2 is not set:
- send "&e/ban (Player) (Integer) (Time Amount) (Reason)"
- send " &7Ex: /ban Timmy103 3 Days Disrespect"
- stop
- if arg-3 is not set:
- send "&e/ban (Player) (Integer) (Time Amount) (Reason)"
- send " &7Ex: /ban Timmy103 3 Days Disrespect"
- stop
- if arg-4 is not set:
- send "&e/ban (Player) (Integer) (Time Amount) (Reason)"
- send " &7Ex: /ban Timmy103 3 Days Disrespect"
- stop
- if command sender is console:
- set {pec} to "CONSOLE"
- if command sender is player:
- set {pec} to player
- if arg-3 is "s" or "second" or "seconds":
- set {tn.%arg-1%} to arg 2
- set {bd.%arg-1%} to now
- broadcast "&e%{pec}% &7has banned &e%arg-1% &7for &e%arg-4% &e[%arg-2% SECONDS]"
- kick arg-1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% SECONDS"
- ban arg-1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% SECONDS"
- add arg 1 to {bps::*}
- if arg-3 is "m" or "minute" or "minutes":
- set {tn.%arg-1%} to arg 2 * 60
- set {bd.%arg-1%} to now
- broadcast "&e%{pec}% &7has banned &e%arg-1% &7for &e%arg-4% &e[%arg-2% MINUTES]"
- kick arg 1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% MINUTES"
- ban arg 1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% MINUTES"
- add arg 1 to {bps::*}
- if arg-3 is "h" or "hour" or "hours":
- set {tn.%arg-1%} to arg 2 * 3600
- set {bd.%arg-1%} to now
- broadcast "&e%{pec}% &7has banned &e%arg-1% &7for &e%arg-4% &e[%arg-2% HOURS]"
- kick arg 1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% HOURS"
- ban arg 1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% HOURS"
- add arg 1 to {bps::*}
- if arg-3 is "d" or "day" or "days":
- set {tn.%arg-1%} to arg 2 * 86400
- set {bd.%arg-1%} to now
- broadcast "&e%{pec}% &7has banned &e%arg-1% &7for &e%arg-4% &e[%arg-2% DAYS]"
- ban arg 1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% DAYS"
- kick arg 1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% DAYS"
- add arg 1 to {bps::*}
- if arg-3 is "w" or "week" or "weeks":
- set {tn.%arg-1%} to arg 2 * 604800
- set {bd.%arg-1%} to now
- broadcast "&e%{pec}% &7has banned &e%arg-1% &7for &e%arg-4% &e[%arg-2% WEEKS]"
- ban arg 1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% WEEKS"
- kick arg 1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-4%%nl% &eBan Date: %{bd.%arg-1%}%%nl%&e Durration: &e%arg-2% WEEKS"
- add arg 1 to {bps::*}
- else:
- send "&cSorry, &7You dont have permission for this command!"
- every second:
- loop {bps::*}:
- remove 1 from {tn.%loop-value%}
- if {tn.%loop-value%} is 0:
- remove loop-value from {bps::*}
- unban loop-value
- command /ban [<offlineplayer>] [<text>]:
- permission: server.ban
- trigger:
- if arg-1 is not set:
- send "&e/ban (Player) (Reason)"
- stop
- if arg-1 is set:
- if arg-2 is not set:
- broadcast "&e%player% &7has banned &e%arg-1%"
- ban arg 1 due to "&eBanned from {@servername}!%nl%%nl%"
- kick arg 1 due to "&eBanned from {@servername}!%nl%%nl%"
- stop
- if arg-2 is set:
- broadcast "&e%player% &7has banned &e%arg-1% &7for &e%arg-2%"
- ban arg 1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-2%"
- kick arg 1 due to "&eBanned from {@servername}!%nl%%nl% &eReason: &7%arg-2%"
- stop
- command /kick [<offlineplayer>] [<text>]:
- permission: server.kick
- trigger:
- if arg-1 is not set:
- send "&e/ban (Player) (Reason)"
- stop
- if arg-1 is set:
- if arg-2 is not set:
- broadcast "&e%player% &7has kicked &e%arg-1%"
- kick arg 1 due to "&eKicked from {@servername}!%nl%%nl%"
- stop
- if arg-2 is set:
- broadcast "&e%player% &7has kicked &e%arg-1% &7for &e%arg-2%"
- kick arg 1 due to "&eKicked from {@servername}!%nl%%nl% &eReason: &7%arg-2%"
- stop
- command /mute [<offlineplayer>] [<number>] [<text>] [<text>]:
- trigger:
- if player has permission "server.warn":
- if arg-1 is not set:
- send "&e/mute (Player) (Integer) (Time Amount) (Reason)"
- send " &7Ex: /mute Timmy103 3 Days Disrespect"
- stop
- if arg-2 is not set:
- send "&e/mute (Player) (Integer) (Time Amount) (Reason)"
- send " &7Ex: /mute Timmy103 3 Days Disrespect"
- stop
- if arg-3 is not set:
- send "&e/mute (Player) (Integer) (Time Amount) (Reason)"
- send " &7Ex: /mute Timmy103 3 Days Disrespect"
- stop
- if arg-4 is not set:
- send "&e/mute (Player) (Integer) (Time Amount) (Reason)"
- send " &7Ex: /mute Timmy103 3 Days Disrespect"
- stop
- if arg-3 is "s" or "sec" or "second" or "seconds":
- set {tm.%arg-1%} to arg 2
- set {im.%arg-1%} to true
- broadcast "&e%player% &7muted &e%arg-1% &7for &e%arg-4% &e[%arg-2% SECONDS]"
- add arg 1 to {bpm::*}
- if arg-3 is "m" or "min" or "minute" or "minutes":
- set {tm.%arg-1%} to arg 2 * 60
- set {im.%arg-1%} to true
- broadcast "&e%player% &7muted &e%arg-1% &7for &e%arg-4% &e[%arg-2% MINUTES]"
- add arg 1 to {bpm::*}
- if arg-3 is "h" or "hour" or "hours":
- set {tm.%arg-1%} to arg 2 * 3600
- set {bd.%arg-1%} to now
- broadcast "&e%player% &7muted &e%arg-1% &7for &e%arg-4% &e[%arg-2% HOURS]"
- add arg 1 to {bpm::*}
- if arg-3 is "d" or "day" or "days":
- set {tm.%arg-1%} to arg 2 * 86400
- set {im.%arg-1%} to true
- broadcast "&e%player% &7muted &e%arg-1% &7for &e%arg-4% &e[%arg-2% DAYS]"
- add arg 1 to {bpm::*}
- if arg-3 is "w" or "week" or "weeks":
- set {tm.%arg-1%} to arg 2 * 604800
- set {im.%arg-1%} to true
- broadcast "&e%player% &7muted &e%arg-1% &7for &e%arg-4% &e[%arg-2% WEEKS]"
- add arg 1 to {bpm::*}
- else:
- send "You don't have the required permission to use this command"
- every second:
- loop {bpm::*}:
- remove 1 from {tm.%loop-value%}
- if {tm.%loop-value%} is 0:
- remove loop-value from {bpm::*}
- delete {im.%loop-value%}
- send "&e[MUTE] &7Your have been &eunmuted!" to loop-value
- on chat:
- if {im.%player%} is true:
- send "&cYou are currently muted!"
- cancel event
- command /warn [<offlineplayer>] [<text>]:
- permission: server.warn
- trigger:
- if arg-1 is not set:
- send "&e/warn (Player) (Reason)"
- stop
- if arg-2 is not set:
- send "&e/warn (Player) (Reason)"
- stop
- if arg-1 is set:
- if arg-2 is set:
- add 1 to {warns.%arg-1%}
- broadcast "&e%player% &7warned &e%arg-1% &7for &e%arg-2% &e[%{warns.%arg-1%}%/3]"
- if {warns.%arg-1%} is 3:
- broadcast "&e%arg-1% &7has automaticly muted for &eTo Many Warns!"
- set {im.%arg-1%} to true
- set {tm.%arg-1%} to 1800
- set {warns.%arg-1%} to 0
Add Comment
Please, Sign In to add comment