Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
- # █ █
- # █ Author | Készítő: Majorka_ █
- # █ BanManager █
- # █ Version: 0.1 █
- # █ █
- # █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
- options:
- p: &f&lDream&3&lGaming &8»
- np: &cNincs jogosultságod a parancs használatára!
- on connect:
- if {ban.%player%} is true:
- if {bantype.%player%} is "PERM":
- kick player due to "&7Ki vagy tiltva a szerverről.%nl%&7Indok: &a%{banr.%player%}%%nl%&7Kitiltott: &a%{banner.%player%}%"
- loop all players:
- if loop-player has permission "essentials.ban":
- send "{@p} &a%player% &7csatlakozni próbált de ki van tiltva van." to loop-player
- if {bantype.%player%} is "TEMP":
- set {_tempban} to difference between now and {bannedat.%player%}
- set {_tempban2} to difference between {bannedat.%player%} and now
- reduce {_tempban} by {bant.%player%}
- set {_bant} to {bant.%player%}
- set {_timeleft} to difference between now and {bannedat.%player%}
- reduce {_bant} by {_timeleft}
- set {_timeleft} to "%{_bant}%"
- replace all "days" in {_timeleft} with "nap"
- replace all "day" in {_timeleft} with "nap"
- replace all "hours" in {_timeleft} with "óra"
- replace all "hour" in {_timeleft} with "óra"
- replace all "minutes" in {_timeleft} with "perc"
- replace all "minute" in {_timeleft} with "perc"
- replace all "seconds" in {_timeleft} with "másodperc"
- replace all "second" in {_timeleft} with "másodperc"
- replace all "and" in {_timeleft} with "és"
- if difference between now and {bannedat.%player%} is bigger than {bant.%player%}:
- set {ban.%player%} to false
- delete {bantype.%player%}
- delete {banr.%player%}
- delete {banner.%player%}
- delete {bant.%player%}
- delete {bannedat.%player%}
- else:
- kick player due to "&7Ideiglenesen ki vagy tiltva a szerverről.%nl%&7Indok: &a%{banr.%player%}%%nl%&7Lejárat: &7%{_timeleft}%%nl%&7Kitiltott: &a%{banner.%player%}%"
- loop all players:
- if loop-player has permission "essentials.tempban":
- send "{@p} &b%player% &7csatlakozni próbált de ki van tiltva.%nl%{@p}&7 Lejárat: &a%{_timeleft}%re&7." to loop-player
- command /unban [<offline player>]:
- permission: essentials.unban
- permission message: {@np}
- trigger:
- if arg-1 is not set:
- send "{@p} &7Használd: &a/unban <játékos>"
- else:
- if arg-1 is banned:
- unban arg-1
- send "&aSikeresen feloldottad &7%arg-1% &ajátékos kitiltását!"
- if {ban.%arg-1%} is true:
- broadcast ""
- broadcast "{@p} &a%player% &7feloldotta &a%arg-1% &7játékos kitiltását."
- broadcast ""
- set {ban.%arg-1%} to false
- delete {bantype.%arg-1%}
- delete {banr.%arg-1%}
- delete {banner.%arg-1%}
- delete {bant.%arg-1%}
- delete {bannedat.%arg-1%}
- send "&aSikeresen feloldottad &7%arg-1% &ajátékos kitiltását!"
- else:
- send "{@p} &c%arg-1% jelenleg nincs kitiltva."
- command /ban [<offline player>] [<text>]:
- permission: essentials.ban
- permission message: {@np}
- trigger:
- if arg-1 is not set:
- send "{@p} &cHasználd: /ban <játékos> <indok>"
- if arg-1 is "iTzKillR3kted" or "Majorka_":
- send "{@p} &4Ezt a játékost nem bannolhatod."
- stop trigger
- else:
- if arg-2 is not set:
- send "{@p} &cHasználd: /ban <játékos> <indok>"
- else:
- if {ban.%arg-1%} is true:
- if player doesn't have permission "ban.admin":
- send "{@p} &cA játékos már ki van tiltva, és nincs jogod felülírni a kitiltást."
- stop
- broadcast ""
- broadcast "{@p} &c%player% &7kitiltotta &c%arg-1% &7játékost."
- broadcast "{@p} &7Indok: &c%colored arg-2%"
- broadcast ""
- set {ban.%arg-1%} to true
- set {bantype.%arg-1%} to "PERM"
- set {banr.%arg-1%} to "%colored arg-2%"
- set {banner.%arg-1%} to player
- add 1 to {staffbans}
- send "&aSikeresen kitiltottad &7%arg-1% &ajátékost. Indok: &7%arg-2%."
- if arg-1 is online:
- kick arg-1 due to "&7Ki lettél tiltva a szerverről.%nl%&7Indok: &a%{banr.%arg-1%}%%nl%&7Kitiltott: &a%{banner.%arg-1%}%"
- command /tempban [<offline player>] [<text>] [<text>]:
- permission: essentials.tempban
- permission message: {@np}
- trigger:
- if arg-1 is not set:
- send "{@p} &cHasználd: /tempban <játékos> <időtartam> <indok>"
- else:
- if arg-2 is not set:
- send "{@p} &cHasználd: /tempban <játékos> <időtartam> <indok>"
- else:
- if arg-3 is not set:
- send "{@p} &cHasználd: /tempban <játékos> <időtartam> <indok>"
- else:
- set {_t} to "%arg-2%" parsed as text
- replace all "d" in {_t} with " day "
- replace all "s" in {_t} with " second "
- replace all "m" in {_t} with " minute "
- replace all "h" in {_t} with " hour "
- set {_t2} to "%{_t}%"
- replace all "day" in {_t2} with "nap"
- replace all "hour" in {_t2} with "óra"
- replace all "minute" in {_t2} with "perc"
- replace all "second" in {_t2} with "másodperc"
- replace all "and" in {_t2} with "és"
- set {_time} to {_t} parsed as timespan
- set {bant.%arg-1%} to {_time}
- set {ban.%arg-1%} to true
- set {bantype.%arg-1%} to "TEMP"
- set {banr.%arg-1%} to "%colored arg-3%"
- set {banner.%arg-1%} to player
- set {bannedat.%arg-1%} to now
- add 1 to {staffbans}
- broadcast ""
- broadcast "{@p} &c%player% &7ideiglenesen kitiltotta &c%arg-1% &7játékost."
- broadcast "{@p} &7Indok: &c%colored arg-3%"
- broadcast "{@p} &7Időtartam: &c%{_t2}%"
- broadcast ""
- send "&7Sikeresen kitiltottad &a%arg-1% &7játékost.%nl%&7Indok: &a%arg-3%.%nl%&7Lejárat: &a%{_t2}%"
- if arg-1 is online:
- kick arg-1 due to "&7Ideiglenesen ki lettél tiltva a szerverről.%nl%&7Indok: &a%{banr.%arg-1%}%%nl%&7Időtartam: &a%{_t2}%%nl%&7Kitiltott: &a%{banner.%arg-1%}%"
- command /kick [<offline player>] [<text>]:
- permission: essentials.kick
- permission message: {@np}
- trigger:
- if arg-1 is not set:
- send "&7Helyes használat: &a/kick [játékosnév] [indok]"
- else:
- if arg-2 is not set:
- send "&7Helyes használat: &a/kick [játékosnév] [indok]"
- else:
- if arg-1 is not online:
- send "&7Ez a játékos nem elérhető."
- else:
- set {kickreason.%arg-1%} to arg-2
- set {kicker.%player%} to player
- kick arg-1 due to "&7Ki lettél kickelve.%nl%&7Kickelés indoka: &a%{kickreason.%arg-1%}% %nl%&7Kickelt: &a%{kicker.%player%}%"
- send " " to player
- send "&aSikeresen kirúgtad &7%arg-1% játékost." to player
- send "&aIndok: &7%{kickreason.%arg-1%}%" to player
- send " " to player
- wait 1 tick
- delete {kickreason.%arg-1%}
- delete {kicker.%player%}
- command /warn [<offline player>] [<text>]:
- permission: warn.use
- permission message: {@np}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement