Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #HeroChat v.0.1 - By HeroseQ
- variables:
- {waited.chat} = false
- {socialspy.%player%} = false
- options:
- #menadżer chatu
- tag: [&eHero&2HC&r]
- wait.msg: &cPoczekaj 5 sekund zanim coś napiszesz !
- chat.admin.permission: chat.admin
- chat.no-delay.permission: chat.no-delay
- chat.off.msg: &4Globalny chat jest aktualnie wyłączony, nie możesz teraz nic pisać.
- chat.on.broadcast: &c%player% &ewłączył globalny chat
- chat.off.broadcast: &c%player% &ewyłączył globalny chat
- chat.cleared.broadcast: &eChat został wyczyszczony przez &6%player%
- #Prywatne wiadomości
- socialspy.pex: socialspy.admin
- socialspy.used.msg: &aWłączyłeś podglądywanie prywatnych wiadomości.
- socialspy.not.used.msg: &4Wyłączyłeś podglądywanie prywatnych wiadomości.
- #Menadżer chatu
- on chat:
- if {chat} is false:
- cancel event:
- send "{@chat.off.msg}"
- player has permissions "{@chat.no-delay.permission}":
- stop
- else:
- if {waited.chat} is false:
- set {waited.chat} to true
- wait 5 real seconds
- set {waited.chat} to false
- else:
- cancel event
- send "{@tag} - {@wait.msg}"
- command /chat [<text>] [<text>]:
- trigger:
- player has permissions "{@chat.admin.permission}"
- send "&7----------&c&lCHAT&r&7----------"
- send "&e/chat clear - &7Czyszczenie chatu"
- send "&e/chat on - &7Wlaczanie chatu"
- send "&e/chat off - &7Wylaczanie chatu"
- arg 1 is "clear":
- loop 100 times:
- broadcast " "
- broadcast "{@chat.cleared.broadcast}"
- arg 1 is "on":
- set {chat} to true
- broadcast "{@chat.on.broadcast}"
- arg 1 is "off":
- set {chat} to false
- broadcast "{@chat.off.broadcast}"
- #Prywatne wiadomości
- command /msg [<player>] [<text>]:
- aliases: /w, /pw, /pm
- triger:
- arg 1 is not "%player%":
- arg 1 is online:
- send "&6%player% &7> &6Ja &7>>&7%coloured arg 2%" to arg 1
- send "&6Ja&7> &6%arg 1% &7>>&7%coloured arg 2%" to arg 1
- loop all players:
- loop-player has permissions "{@socialspy.pex}":
- if {socialspy.%loop-player%} is true:
- send "&6%player&7> &6%arg 1% &7>>&7%coloured arg 2%"
- command /socialspy:
- trigger:
- player has permissions "{@socialspy.pex}":
- if {socialspy.%player%} is false:
- set {socialspy.%player%} to true
- send "{@socialspy.used.msg}"
- else:
- send "{@socialspy.not.used.msg}"
- set "{socialspy.%player%}" to false
Advertisement
Add Comment
Please, Sign In to add comment