Jump to content

Sorbon

Member
  • Content Count

    9
  • Joined

  • Last visited

Community Reputation

2 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thank you very much for your comment "%all offline players%" has been replaced with another way; set {_hasPlayed} to 1 if arg-1 has played before set {_hasPlayed} to 1 if arg-1 is online if {_hasPlayed} is set:
  2. options: # How to add ranks: # "Rank || Rank Prefix" that means, if you want to add the rank "Owner" with the prefix "&4Owner", you have to add "Owner||&4Owner" to the list below, be sure the last comma is an "and" ranks: "Default||&7Player&7","VIP||&a[VIP]&7","Supporter||Sup","Moderator||Mod","Admin||Admin" and "Owner||Owner" function getRank(n:string) :: string: set {_m::*} to {@ranks} loop {_m::*}: set {_s::*} to loop-value split at "||" return {_s::1} if {_s::1} is {_n} return "" function getPrefix(n:string) :: string: set {_m::*} to {@ranks} loop {_m::*}: set {_s::*} to loop-value split at "||" return {_s::2} if {_s::1} is {_n} function setRank(p:player,t:offlineplayer,n:string): set {_u} to uuid of {_t} set {_rank} to {rank::%{_u}%} if getRank({_n}) is "": send "This Rank does not exist" to {_p} else: if {_t} is online: set {rank::%{_u}%} to {_n} send "&7You've set &a%{_t}%&7's &7rank to %getPrefix({_n})%" to {_p} else: if {_t} has played before: set {rank::%{_u}%} to {_n} send "&7You've set &a%{_t}%&7's &7rank to %getPrefix({_n})%" to {_p} else: send "This player does not exist" to {_p} on join: setRank(player,player,"default") if {rank::%player's uuid%} is not set on chat: set chat format to "%getPrefix({rank::%player's uuid%})% %player%: &7%message%" command /setrank [<offlineplayer>] [<text>]: permission: skript.setrank permission message: &cYou may not use that command! trigger: if arg-2 is set: setRank(player,arg-1,arg-2) else: send "&7Usage: /setrank Player Rank" command /ranklist: permission: skript.ranklist permission message: &cYou may not use that command! usage: /ranklist trigger: send "" send "&3Rank List" send "" set {_n::*} to {@ranks} loop {_n::*}: set {_s::*} to loop-value split by "||" send "%{_s::2}% &8- &7""%{_s::1}%""" send ""
  3. Small Skript by Sorbon Usuage: You add the amount + base item in @BlocksToCompress and the upgraded version in @UpgradedVersion, it will it will always upgrade with the item, in the same position! options: # Just add them in order, and be carefully that you dont mess up :D # in this example: 64 coal = 2 coal blocks || 64 Iron ingot = 1 Iron block.... # seperated by "," and the last comma has to be "and" # it will always upgrade with the item at the same position! BlocksToCompress: 64 coal, 64 iron ingot and 64 diamond # Enchanted Items: 1 of glowing %item% # named item: 1 of %item% named "Name" # lore: 1 of %item% named "name" with lore "Lore 1", "Lore 2" and "lore 3" UpgradedVersion: 2 coal block named "lol", 1 of glowing iron block and 1 of stone named "name" with lore "Lore 1", "Lore 2" and "lore 3" command /compress: trigger: compress(player) command /decompress: trigger: decompress(player) function compress(p:player): set {_n::*} to {@BlocksToCompress} set {_m::*} to {@UpgradedVersion} loop {_n::*}: while {_p} has loop-value: remove loop-value from {_p}'s inventory give {_p} {_m::%loop-index%} set {_s} to true send "&bYou have no blocks to compress." to {_p} if {_s} is not set function decompress(p:player): set {_n::*} to {@BlocksToCompress} set {_m::*} to {@UpgradedVersion} loop {_m::*}: while {_p} has loop-value: if {_p} can hold {_n::%loop-index%}: remove loop-value from {_p}'s inventory give {_p} {_n::%loop-index%} send "&bYou have no blocks to decompress." to {_p} if {_s} is not set
  4. Please let me know if you want me to add anything ;D
  5. You can overwrite your own Report..... and ah User can only have one report, which can be overwritten...... That's way I created one today, be sure to check it out... You can create multiple Reports for each user which gets listed nicely..... Swayl, sry for editing your code
  6. Sorbon's Report Skript Plugins needed: Skript Tuske Never do /sk reload all, it breaks the Skript (because TuSke) Do /sk reload report.sk or whatever the name is Features: Reports are sorted by Date Reports can be seen in a GUI You can directly Teleport to the reported player Cooldown infinity pages Pictures: Listed by Each User: When you Click on it, you can see all reports: by clicking on 1 report, it gets deleted, or you use the delete all button Command: /report <player> <reason> /reports to view the reports I hope you like it, if you find any bugs or have any Suggestions, be sure you let me know of it CODE: options: permission: report.Admin # Permission Prefix: &6Server &7 # Prefix NoPermMessage: &cYou don't have the permissions to use this Command! cooldown: 30 seconds # Cooldown, so people cant spam it CooldownMessage: &7Please wait &7[&c%remaining time%&7] command /report [<offline player>] [<text>]: cooldown: {@cooldown} cooldown message: {@CooldownMessage} trigger: if arg-1 is not set: send "&cUsage: /report <player> <reason>" else: if arg-2 is not set: send "&cUsage: /report <player> <reason>" else: set {_hasPlayed} to 1 if arg-1 has played before set {_hasPlayed} to 1 if arg-1 is online if {_hasPlayed} is set: add arg-1 to {reports::list::*} if {reports::list::*} does not contain arg-1 add arg-2 to {reports::%arg-1%::reason::*} add player to {reports::%arg-1%::reporter::*} add now to {reports::%arg-1%::time::*} set {reports::%arg-1%::last} to now set {_p} to player #Report Message: send "{@Prefix} &7You have reported [%arg-1%&7]" send "{@Prefix} [%player%&7] &7has reported [&c%arg-1%&7] &7[<command:/reports>&aClick me<reset>&7]" to all players where [input has permission "{@permission}"] else: send "{@Prefix} This Player has never played here before" command /reports [<offline player>]: permission: report.admin permission message: {@NoPermMessage} trigger: if arg-1 is offline player: reports(player,arg-1,1) else: menu(player,1) function open(p:player,n:string): open virtual chest inventory with size 6 named "%{_n}%" to {_p} format gui slot (all numbers between 0 and 54) of {_p} with light gray stained glass pane named "" to do nothing format gui slot 0,1,2,3,4,5,6,7,8,36,37,38,39,40,41,42,43 and 44 of {_p} with gray stained glass pane named "" to do nothing function fix(o:objects) :: objects: loop {_o::*}: add loop-value to {_n::*} return reversed {_n::*} # This is super weird, I have to fix that in another update (sorry) # # # If you have a better version of this, pls contact me :D function delete(p:player,r:player,i:integer): if size of {reports::%{_r}%::reason::*} = 1: remove {_r} from {reports::list::*} clear {reports::%{_r}%::*} menu({_p},1) stop set {_reason::*} to reversed {reports::%{_r}%::reason::*} set {_reporter::*} to reversed {reports::%{_r}%::reporter::*} set {_time::*} to reversed {reports::%{_r}%::time::*} remove {_reason::%{_i}%} from {_reason::*} remove {_reporter::%{_i}%} from {_reporter::*} remove {_time::%{_i}%} from {_time::*} set {reports::%{_r}%::reason::*} to fix({_reason::*}) set {reports::%{_r}%::reporter::*} to fix({_reporter::*}) set {reports::%{_r}%::time::*} to fix({_time::*}) reports({_p},{_r},1) function reverse(o:objects) :: objects: return reversed {_o::*} function reports(p:player,r:player,page:number): open({_p},"Reports") format gui slot 4 of {_p} with skull of {_r} named "&c%{_r}%" to do nothing format gui slot 51 of {_p} with ender pearl named "&cTeleport" to run: if {_r} is online: teleport {_p} to {_r} else: send "{@Prefix}&cUser is not online" format gui slot 49 of {_p} with book named "&cBack to Reports" to run function menu({_p},1) format gui slot 47 of {_p} with barrier named "&cDelete all Reports" to run: clear {reports::%{_r}%::*} remove {_r} from {reports::list::*} menu({_p},1) if {_page} > 1: format gui slot 45 of {_p} with arrow to run: set {_y} to {_page} - 1 reports({_p},{_r},{_y}) set {_reason::*} to reversed {reports::%{_r}%::reason::*} set {_reporter::*} to reversed {reports::%{_r}%::reporter::*} set {_time::*} to reversed {reports::%{_r}%::time::*} loop {_reason::*}: set {_b} to (loop-index parsed as number) - (27*({_page}-1))+8 if ({_b}) is between 9 and 35: set {_loop} to loop-index parsed as integer format gui slot {_b} of {_p} with paper named "&6Report ##%loop-index%" with lore "","&7Reason: ", split({_reason::%loop-index%}),"", "&7Reported by: %{_reporter::%loop-index%}%" and "&7Date: %{_time::%loop-index%}%" to run: delete({_p},{_r},{_loop}) if {_b} > 35: format gui slot 53 of {_p} with arrow to run: set {_x} to ({_page} + 1) reports({_p},{_r},{_x}) exit loop # i know its weird, but it works xD function split(list:string) :: strings: set {_list::*} to {_list} split at " " set {_n} to "&7" loop {_list::*}: set {_m} to loop-value while length of {_m} > 30: set {_n} to "%{_n}% %first (30 - length of {_n}) characters of {_m}%" add {_n} to {_n::*} set {_n} to "&7" replace all first 30 characters of {_m} with "" in {_m} set {_n} to "%{_n}% %{_m}%" if length of {_n} > 30: add {_n} to {_n::*} set {_n} to "&7" add {_n} to {_n::*} if {_n} is not "" return {_n::*} function menu(p:player,page:number): open({_p},"Reports Page %{_page}%") format gui slot 49 of {_p} with barrier named "&cClose" to run: close {_p}'s inventory if {_page} > 1: format gui slot 45 of {_p} with arrow to run: set {_y} to {_page} - 1 reports({_p},{_r},{_y}) loop {reports::list::*}: set {_b} to (loop-index parsed as number) - (27*({_page}-1))+8 if ({_b}) is between 9 and 35: format gui slot {_b} of {_p} with skull of loop-value named "&6%loop-value%" with lore "&7Reports: %size of {reports::%loop-value%::reason::*}%","","&7Last Report: %{reports::%loop-value%::last}%" and "&7From: %{reports::%loop-value%::reporter::%loop-index%}%" to run function reports({_p},loop-value,1) if {_b} > 35: format gui slot 53 of {_p} with arrow to run: add 1 to {_page} menu({_p},{_page}) exit loop report.sk
  7. Features:Custom MessagesPermission based VaultsAdmin Command to open other player's VaultsRequirements:Skript:Tuske:SkQuery: Information:It's my first "public" Skript i've ever made. The max. Vault per player can easly be set per permissions, like "pv.10" for 10 playervaults.The Chatmessages can all be edited in the Options, as well as the maximum vaults.If you have any Suggestions about it, let me know.... I'm still very unexperienced, but i hope you like the Skript and it will fit in your Server!Commands:/pv [vault number]/pvadmin [player] [vault number]How to install:move both files on your script folder Playervault.sk TabCompleter.sk
  8. RandomItem Plugins needed:SkriptSkRayFallDescription:It gives everyone on the server a random item every X seconds.The time, boss bar and black list can be edited within the skript, just open it with a regular text editor.Features:Timer can be changedBossBar name, color can be changedBlack list for removing items that you do not want to give to people. toggleIf there are any suggestions or bugs, contact me if there are any discrepancies: Sorbon#1337 CODE: #---------------------------------------< Skript made by Sorbon >---------------------------------# options: time: 20 # 5, 10, 15, 20... are the best times, :D bossbar: True # True or False # needs restart bossbarColor: green BossBarName: &aRandom Item in: &7[&c%{_timer}%&7] #---> %{_timer}% is the Timer #------------------------------------------------------------------------# # THe Blacklist, everthing here wont be given to the player! # ps: remove the items here, if you want to give it to the player xD #------------------------------------------------------------------------# Blacklist: bedrock, command block and barrier and stone #------------------------------------------------------------------------------------------------# # Do not edit the code below without knowing what you're doing on load: set {_timer} to 0 create bossbar titled "{@BossBarName}" and id "randomdrop" for all players with progress 100 with colors {@bossbarColor} if "{@bossbar}" = "True" on join: add bossbar "randomdrop" for player if "{@bossbar}" = "True" command /toggle: trigger: if {toggle::%player%} is set: delete {toggle::%player%} send "You are getting Items now!" else: set {toggle::%player%} to true send "You don't get any Items now :c" command /random [<string>]: trigger: if player has permission "random.admin": if arg-1 is "Pause","Break" or "stop": set {break} to true send "&cYou stopped the Countdown" if arg-1 is "continue","unstop" or "start": send "&cYou started the countdown" delete {break} if arg-1 is not set: send "&7------<&aRandomItem by Sorbon&7>------" send "&7-> &aUse &c/random Pause &a| &cStop &ato stop the Countdown!" send "&7-> &aUse &c/random Continue &a| &cStart &ato start the Countdown!" else: send "&7------<&aRandomItem by Sorbon&7>------" send "&7-> &cYou don't have the permissions to use this command!" Every {@time} seconds: set bossbar "randomdrop" value to 100 if "{@bossbar}" = "True" loop 100 times: if {break} is set: set {_timer} to "Paused" set bossbar "randomdrop" title to "{@BossBarName}" if "{@bossbar}" = "True" set bossbar "randomdrop" value to 100 if "{@bossbar}" = "True" stop set {_s} to {@time}/100 wait ("%{_s}% seconds" parsed as timespan) set bossbar "randomdrop" value to (value of bossbar "randomdrop" - 1) if "{@bossbar}" = "True" set {_timer} to ceil({_s} * value of bossbar "randomdrop") if "{@bossbar}" = "True" set bossbar "randomdrop" title to "{@BossBarName}" if "{@bossbar}" = "True" loop all players: while {_bool} is not true: set {_item} to random element out of all items set {_bool} to true if {@Blacklist} does not contain {_item} wait 1 tick give loop-player {_item} if {toggle::%loop-player%} is not set RandomItem V 1.2.sk
×
×
  • Create New...