Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #=======================#
- # SrReports 3.3 #
- # Best Staff Solution #
- #=======================#
- #===========#
- # Options #
- #===========#
- Options:
- Prefix: &c&lReports &f»
- WaitMsg: &7Please wait some seconds to report again a player!
- SuccesRMsg: &7Thanks for your report, !
- ReasonError: &7Please add a reason.
- PlayerError: &7Player is not online, have you written his name correctly?
- AutoRError: &7You cant report yourself...
- Delay: 10 # In seconds!
- NoPermission: &7Are you crazy? you can't do this!
- SSDisconnect: &7Disconnected while ss!
- NoStaff: &7There's no staff online, please report on &b@ServerName
- Recargando: &6Reloading the plugin...
- Recargado: &aPlugin Reloaded!
- Warn: &bYou are now in ss mode, please do what the staff tells you.
- WarnSucces: &bPlayer has been successfully warned.
- StaffChat: &6&lSCHAT
- MiningAlert: &e%player% &amight be using xray, he had mined
- # In this option above put your server name !! #
- ServerName: &6Name &f» &b
- #=====================#
- # Staff Mode Config #
- #=====================#
- Message: &eStaff Mode
- RandomTP: &aRandom Teleport
- Freezer: &bFreeze Player
- Inventory: &cInventory Viewer
- Vanish: &eVanish
- Follower: &3Follow Player
- TPLast: &aLast Report TP
- Alerts: &6Alerts Config
- UnFrozen: &aUnfrozen by &e
- Frozen: &cFrozen by &e
- ssrefuseban: true
- #===============#
- # IBan Config #
- #===============#
- # Edit more on lines 372-380 #
- xrayban: /tempban %arg-1% 5d xRay (Admitted)
- hacksban: /ban %arg-1% Hacks (SS)
- truceban: /tempban %arg-1% 1d Truce
- admittedhacksban: /tempban %arg-1% 5d Hacks (Admitted)
- teamban: /tempban %arg-1% 1d Teaming
- altsban: /ban %arg-1% Banned Alts
- ghostban: /ban %arg-1% GhostClient (SS)
- ssrefuseban: /tempban %arg-1% 5d SS Refuse
- serverdisturbban: /tempban %arg-1% 1h Toxic // Server Disturb
- # Code #
- #===============#
- # Staff Mode #
- #===============#
- command /staff:
- aliases: /mod
- permission: srreports.admin
- trigger:
- if {staffmode.%player%} is not set:
- set {inventory.%player%} to player's serialized inventory
- clear player's inventory
- set player's gamemode to creative
- set {staffmode.%player%} to true
- send "{@Message} &aEnabled" to player
- hide player from all players
- give 1 clock named "{@RandomTP}" to slot 0 of player
- give 1 ice block named "{@Freezer}" to slot 1 of player
- give 1 book named "{@Inventory}" to slot 8 of player
- give 1 light green dye named "{@Vanish} &a&lON" to slot 3 of player
- give 1 lead named "{@Follower}" to slot 4 of player
- give 1 diamond hoe named "{@TPLast}" to slot 5 of player
- give 1 redstone repeater named "{@Alerts}" to slot 7 of player
- stop
- if {staffmode.%player%} is true:
- clear {staffmode.%player%}
- send "{@Message} &cDisabled"
- clear player's inventory
- restore inventory of player from {inventory.%player%}
- reveal player from all players
- set player's gamemode to survival
- make player execute command "/spawn"
- stop
- on rightclick on player:
- if player's tool is a book named "{@Inventory}":
- if player has permission "srreports.admin":
- wait 3 ticks
- open the clicked entity's inventory for the player
- send "&7Opening Inventory: &e%clicked entity%" to player
- if player's tool is a ice block named "{@Freezer}":
- if player has permission "srreports.admin":
- if {freeze.%clicked entity%} is not set:
- wait 3 ticks
- set {freeze.%clicked entity%} to true
- send "&7Player Frozen:&e %clicked entity%" to player
- send "{@Frozen} %player%" to clicked entity
- send "{@Warn}"
- stop
- if {freeze.%clicked entity%} is true:
- wait 3 ticks
- clear {freeze.%clicked entity%}
- send "&7Player UnFrozen:&e %clicked entity%" to player
- send "{@UnFrozen}" to clicked entity
- stop
- on quit:
- if {staffmode.%player%} is true:
- clear {staffmode.%player%}
- on right click:
- if player is holding a diamond hoe named "{@TPLast}":
- if player has permission "srreports.admin":
- wait 5 ticks
- teleport player to {lastreport}
- stop
- if player is holding a clock named "{@RandomTP}":
- if player has the permission "srreports.admin":
- cancel event
- set {_random} to a random player out of all players
- while {_random} is name of player:
- set {_random} to a random player out of all players
- wait 1 tick
- if {_random} is not name of player:
- teleport player 1 behind {_random}
- send "&7Teleporting to: &e%{_random}%"
- if name of player's tool is "{@Vanish} &a&lON":
- set slot 3 of player to gray dye named "{@Vanish} &c&lOFF"
- reveal player from all players
- else if name of player's tool is "{@Vanish} &c&lOFF":
- set slot 3 of player to light green dye named "{@Vanish} &a&lON"
- hide player from all players
- if player is holding a lead named "{@Follower}":
- if player has permission "srreports.admin":
- if entity's target is a player:
- set {_name} to "%target entity%" parsed as a player
- send "&7Following: &e%{_name}%"
- make player ride {_name}
- if player is holding a redstone repeater named "{@Alerts}":
- if player has the permission "srreports.admin":
- open chest with 3 rows named "{@Alerts}" to player
- wait 3 ticks
- format slot 2 of player with 1 diamond ore named "&eMining Alerts &f({%miningal}%&f)" to close
- format slot 11 of player with 1 dye:10 named "&a&lON" to run [make player execute command "/§mineon"]
- format slot 20 of player with 1 dye:8 named "&c&lOFF" to run [make player execute command "/§mineoff"]
- format slot 6 of player with 1 iron sword named "&eBug Alerts &f({%bugal}%&f)" to close
- format slot 15 of player with 1 dye:10 named "&a&lON" to run [make player execute command "/§bugon"]
- format slot 24 of player with 1 dye:8 named "&c&lOFF" to run [make player execute command "/§bugoff"]
- on command "/§mineon":
- cancel event
- set {miningal} to "&aON"
- set {miningalerts.%player%} to true
- send "{@Prefix} &6Mining Alerts &a&lON"
- on command "/§mineoff":
- cancel event
- set {miningalerts.%player%} to false
- set {miningal} to "&cOFF"
- send "{@Prefix} &6Mining Alerts &c&lOFF"
- on command "/§bugon":
- cancel event
- set {bugalerts.%player%} to true
- set {bugal} to "&aON"
- send "{@Prefix} &6Bug Alerts &a&lON"
- on command "/§bugoff":
- cancel event
- set {bugalerts.%player%} to false
- set {bugal} to "&cOFF"
- send "{@Prefix} &6Bug Alerts &c&lOFF"
- on any movement:
- if {freeze.%player%} is true:
- cancel event
- on damage:
- if {freeze.%attacker%} is true:
- cancel event
- on quit:
- if {freeze.%player%} is true:
- set {freeze.%player%} to false
- if {ssrefuseban} is true:
- execute console command "/ban %player% SS Refusing"
- else:
- broadcast "&c&l[!] &a%player% {@SSDisconnect}"
- on break:
- if {staffmode.%player%} is true:
- cancel event
- on place:
- if {staffmode.%player%} is true:
- cancel event
- on damage:
- if {staffmode.%attacker%} is true:
- cancel event
- on burn:
- if {staffmode.%player%} is true:
- cancel event
- on drop:
- if {staffmode.%player%} is true:
- cancel event
- on pickup:
- if {staffmode.%player%} is true:
- cancel event
- on craft:
- if {staffmode.%player%} is true:
- cancel event
- on consume:
- if {staffmode.%player%} is true:
- cancel event
- on inventory click:
- if {staffmode.%player%} is true:
- cancel event
- on mine of diamond ore:
- loop all players:
- if {miningalerts.%loop-player%} is true:
- send "&c&l[!] {@MiningAlert} &bdiamond."
- on mine of gold ore:
- loop all players:
- if {miningalerts.%loop-player%} is true:
- send "&c&l[!] {@MiningAlert} &6gold."
- on mine of emerald ore:
- loop all players:
- if {miningalerts.%loop-player%} is true:
- send "&c&l[!] {@MiningAlert} &aesmerald."
- on mine of lapis lazuli ore:
- loop all players:
- if {miningalerts.%loop-player%} is true:
- send "&c&l[!] {@MiningAlert} &aesmerald."
- command /onstaff:
- trigger:
- loop all players:
- loop-player has permission "srreports.admin"
- add loop-player to {_online staff::*}
- size of {_online staff::*} is 0:
- message "{@Prefix} {@NoStaff}"
- else:
- play raw sound "note.pling" at player with pitch 1 volume 3
- send ""
- send "&a» &cOnline Staff:"
- send "&e%{_online staff::*}%"
- send ""
- command /report <player> <text>:
- usage: &b/report <jugador> <razon>
- trigger:
- arg 1 is a player:
- arg 2 is set:
- set {_waited} to difference between {report.%player%.lastused} and now
- if {_waited} is less than {@Delay} seconds:
- message "{@Prefix} {@WaitMsg}"
- stop
- if arg-1 is "%player%":
- message "{@Prefix} {@AutoRError}"
- stop
- loop all players:
- loop-player has the permission "srreports.admin":
- play raw sound "note.pling" at loop-player with pitch 1 volume 3
- send "" to loop-player
- send "&b» &a%player% &7has reported &c%arg 1%" to loop-player
- send "&b» &7Reason: &e%arg 2%" to loop-player
- send "" to loop-player
- set {report.%player%.lastused} to now
- set {lastreport} to arg-1
- send "{@Prefix} {@SuccesRMsg}" to player
- send message "&cReport: %player% report %arg-1% por %arg-2%" to console
- log "Reportes: %player% (%ip of player%) report %arg-1% (%ip of arg-1%) for %arg-2%" to "SK.log"
- else:
- message "{@Prefix} {@ReasonError}"
- else:
- message "{@Prefix} {@PlayerError}"
- command /reports [<text>]:
- trigger:
- if arg 1 is not set:
- if player has the permission "srreports.admin":
- play raw sound "mob.wolf.hurt" at player with pitch 1 volume 3
- send "" to player
- send "&ePlugin By SrSergioxx" to player
- send "" to player
- send "&6Commands:" to player
- send ""
- send "&a» &7/report <player> <reason>" to player
- send "&a» &7/staff"
- send "&a» &7/onstaff" to player
- send "&a» &7/reports reload"
- send "&a» &7/sc <text>"
- send "&a» &7/bug <text>"
- send "&a» &7/hear <text>"
- send "" to player
- send "&6Permissions:"
- send ""
- send "&b» &esrreports.admin"
- send ""
- else:
- send ""
- send "&e/report <player> <reason>"
- send "&e/bug <problem>"
- send "&e/onstaff"
- send ""
- if arg 1 is "reload":
- if player has the permission "srreports.admin":
- execute console command "/sk reload SrReport"
- wait 1 tick
- send "{@Prefix} {@Recargando}"
- wait 2 seconds
- play raw sound "random.levelup" at player with pitch 1 volume 3
- send "{@Recargado}"
- else:
- send "{@Prefix} {@NoPermission}" to player
- command /sc <text>:
- trigger:
- if player does not have the permission "srreports.admin":
- message "{@Prefix} {@NoPermission}"
- stop
- send message "{@StaffChat} &e%player% &f» &a%arg 1%" to console
- loop all players:
- loop-player has the permission "srreports.admin":
- play raw sound "random.click" at player with pitch 1 volume 3
- send "{@StaffChat} &e%player% &f» &A %arg 1%" to loop-player
- command /bug <text>:
- usage: &e/bug <bug>
- trigger:
- loop all players:
- loop-player has the permission "srreports.admin":
- if {bugalerts.%loop-player%} is true:
- play raw sound "random.burp" at loop-player with pitch 1 volume 3
- send "" to loop-player
- send "&a» &7Player &e%player% &7has reported a bug." to loop-player
- send "&a» &7Bug: &f%arg 1%" to loop-player
- send "" to loop-player
- send "{@Prefix} {@SuccesRMsg}" to player
- send message "&cBugs: %player% reporto el bug de %arg-1%" to console
- log "Bugs: %player% (%ip of player%) reporto el bug de %arg-1%" to "SK.log"
- command /hear <text>:
- usage: /hear <text>
- trigger:
- if player has the permission "srreports.admin":
- broadcast "{@ServerName} %arg-1%"
- else:
- send "{@Prefix} {@NoPermission}"
- command /iban <player>:
- permission: srreports.admin
- trigger:
- open chest with 1 rows named "&cBan Player:&b %arg-1%" to player
- wait 3 ticks
- format slot 0 of player with 1 diamond ore named "&axRay (Admitted)" with lore "&7Choose This Reason" to close then run [make player execute command "{@xrayban}"]
- format slot 1 of player with 1 diamond sword named "&aHacks (SS)" with lore "&7Choose This Reason" to close then run [make player execute command "{@hacksban}"]
- format slot 2 of player with 1 player head named "&aTruce" with lore "&7Choose This Reason" to close then run [make player execute command "{@truceban}"]
- format slot 3 of player with 1 iron sword named "&aHacks (Admitted)" with lore "&7Choose This Reason" to close then run [make player execute command "{@admittedhacksban}"]
- format slot 4 of player with 1 book named "&aTeaming" with lore "&7Choose This Reason" to close then run [make player execute command "{@teamban}"]
- format slot 5 of player with 1 lead named "&aAlts" with lore "&7Choose This Reason" to close then run [make player execute command "{@altsban}"]
- format slot 6 of player with 1 iron hoe named "&aGhostClient (SS)" with lore "&7Choose This Reason" to close then run [make player execute command "{@ghostban}"]
- format slot 7 of player with 1 enchanted book named "&aSS Refuse" with lore "&7Choose This Reason" to close then run [make player execute command "{@ssrefuseban}"]
- format slot 8 of player with 1 paper named "&aServer Disturb" with lore "&7Choose This Reason" to close then run [make player execute command "{@serverdisturbban}"]
- # ================================================#
- #| |#
- #| New ! CHAT MODERATION |#
- #| |#
- # ================================================#
- #-----------------------------------------------------#
- # Easy edition, you just have to copy the #
- # frase and replace. Example #
- # #
- # replace all "bad word" in the message #
- # with "**" #
- # Then reload the plugin with /reports reload #
- #-----------------------------------------------------#
- on chat:
- if player doesn't have the permission "srreports.admin":
- replace all "tonto" in the message with "**"
- replace all "gilipollas" in the message with "**"
- replace all "gilipoyas" in the message with "**"
- replace all "subnormal" in the message with "**"
- replace all "Puta" in the message with "**"
- replace all "Mierda" in the message with "**"
- replace all "mierda" in the message with "**"
- replace all "PUTA" in the message with "**"
- replace all "mrd" in the message with "**"
- replace all "Mrd" in the message with "**"
- replace all "randy" in the message with "**"
- #===============#
- # IP Detect #
- #===============#
- on chat:
- replace all ".my." in the message with ""
- replace all "my." in the message with ""
- replace all ".my" in the message with ""
- replace all ".g s.." in the message with ""
- replace all "g s." in the message with ""
- replace all ".g s" in the message with ""
- replace all ".nu." in the message with ""
- replace all "nu." in the message with ""
- replace all ".nu" in the message with ""
- replace all ".mc." in the message with ""
- replace all "mc." in the message with ""
- replace all ".mc" in the message with ""
- replace all ".xyz." in the message with ""
- replace all "xyz." in the message with ""
- replace all ".xyz" in the message with ""
- replace all ".us." in the message with ""
- replace all "us." in the message with ""
- replace all ".us" in the message with ""
- replace all ".play." in the message with ""
- replace all "play." in the message with ""
- replace all ".play" in the message with ""
- replace all "com." in the message with ""
- replace all ".com" in the message with ""
- replace all ".g-s." in the message with ""
- replace all "g-s." in the message with ""
- replace all ".g-s" in the message with ""
- replace all ".es" in the message with ""
- replace all "net." in the message with ""
- replace all ".net" in the message with ""
- replace all "org." in the message with ""
- replace all ".org" in the message with ""
- replace all "eu." in the message with ""
- replace all ".eu" in the message with ""
- replace all "latin" in the message with ""
- replace all "latin." in the message with ""
- replace all ".latin" in the message with ""
- replace all "Craft" in the message with ""
- replace all ".tk" in the message with ""
- replace all "t.k" in the message with ""
- replace all "t-k" in the message with ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement