Jump to content

_BokBok_

Member
  • Posts

    27
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by _BokBok_

  1. On 5/4/2020 at 9:20 AM, Drpepperguy123 said:

    Could you make a staff chat skript that is only triggered if you put # infront of the message?

    I couldn't do # as it would mess up the skript because # ignores all the code after it in that line so I changed it to @message

     

    command /sc <text>:
      permission: staffchat.use
      permission message: &cYou do not have access to use this command!
      trigger:
        loop all players:
          if loop-player has permission "staffchat.use":
            send "&8[&b&lS&3&lC&8] %player's prefix%&6%player%%player's suffix%&8: &e%colored arg-1%" to loop-player

    on chat:
      if message starts with "@":
        if player has permission "staffchat.use":
          replace first "@" with " " in message
          cancel event
          make player say "/sc %message%"

  2. On 5/16/2020 at 1:30 AM, Cqokies said:

    can u make me a full punishment system skript with no bangui and make the messages look neat and stuff Include a tempban and tempmute please thank you!

    command /ban [<offlineplayer>] [<text>]:
        trigger:
            if player does not have permission "ban.use":
                send "&cYou are not permitted to run this command!"
                stop
            if arg-1 is not set:
                send "&c/ban (player) [reason] [-s]"
                stop
            if arg-1 has permission "ban.use":
                send "&cThat player cannot be banned!"
                stop
            if player is not set:
                set {_p} to "CONSOLE"
            else:
                set {_p} to player
            if arg-1 is banned:
                send "&cThat player is already banned!"
                stop
            if arg-2 is not set:
                set {_r} to "N/A"
            else:
                set {_r} to arg-2
            if {_r} contains "-s":
                replace all " -s" and "-s " with "" in {_r}
                set {_silent} to true
            if {_silent} is set:
                loop all players:
                    if loop-player has permission "ban.use":
                        send "&7&o(SILENT) &b%{_p}% &7banned &b%arg-1% &7for &c%{_r}% &7[FOREVER]" to loop-player
            else:
                broadcast "&b%{_p}% &7banned &b%arg-1% &7for &c%{_r}% &7[FOREVER]"
            ban arg-1 due to {_r}
            if arg-1 is online:
                kick arg-1 due to "&7You are now banned! &bReason: &7%{_r}%"
            add arg-1 to {banlist::*}
            
    command /kick [<player>] [<text>]:
        trigger:
            if player does not have permission "kick.use":
                send "&cYou are not permitted to run this command!"
                stop
            if arg-1 is not set:
                send "&c/kick (player) [reason] [-s]"
                stop
            if arg-1 has permission "kick.use":
                send "&cThat player cannot be kicked!"
                stop
            if arg-2 is not set:
                set {_r} to "N/A"
            else:
                set {_r} to arg-2
            if player is not set:
                set {_p} to "CONSOLE"
            else:
                set {_p} to player
            if {_r} contains "-s":
                replace all " -s" and "-s " with "" in {_r}
                set {_silent} to true
            if {_silent} is set:
                loop all players:
                    if loop-player has permission "ban.use":
                        send "&7&o(SILENT) &b%{_p}% &7kicked &b%arg-1% &7for &c%{_r}%" to loop-player
            else:
                broadcast "&b%{_p}% &7kicked &b%arg-1% &7for &c%{_r}%"
            kick arg-1 due to "&7You were kicked! &bReason: &7%{_r}%"
            
    command /tempban [<offlineplayer>] [<text>] [<timespan>]:
        trigger:
            if player does not have permission "tempban.use":
                send "&cYou are not permitted to run this command!"
                stop
            if arg-2 is not set:
                send "&c/tempban (player) [reason] [-s] (time)"
                stop
            if arg-1 has permission "tempban.use":
                send "&cThat player cannot be banned!"
                stop
            if player is not set:
                set {_p} to "CONSOLE"
            else:
                set {_p} to player
            if arg-1 is banned:
                send "&cThat player is already banned!"
                stop
            if arg-2 is not set:
                set {_r} to "N/A"
            else:
                set {_r} to arg-2
            set {_l} to "%arg-3%"
            set {_l} to "%capitalized {_l}%"
            if {_r} contains "-s":
                replace all " -s" and "-s " with "" in {_r}
                set {_silent} to true
            if {_silent} is set:
                loop all players:
                    if loop-player has permission "tempban.use":
                        send "&7&o(SILENT) &b%{_p}% &7banned &b%arg-1% &7for &c%{_r}% &7[%{_l}%]" to loop-player
            else:
                broadcast "&b%{_p}% &7banned &b%arg-1% &7for &c%{_r}% &7[%{_l}%]"
            ban arg-1 due to {_r}
            if arg-1 is online:
                kick arg-1 due to "&7You are now banned! &bReason: &7%{_r}% &f &f &f &f &bLength: &7%arg-3%"
            add arg-1 to {banlist::*}
            set {%arg-1%.banned} to now
            set {%arg-1%.length} to arg-3
            
    command /broadcast [<text>]:
        aliases: /bc, /announce, /a
        trigger:
            if player does not have permission "broadcast.use":
                send "&cYou are not permitted to run this command!"
                stop
            broadcast ""
            broadcast "&b&lALERT &8>> &7%colored arg-1%"
            broadcast ""
            loop all players:
                if loop-player has permission "broadcast.use":
                    if loop-player is not player:
                        if player is a player:
                            set {_p} to player
                        else:
                            set {_p} to "CONSOLE"
                        send "&b%{_p}%&7 used broadcast!" to loop-player
                    
    command /mute [<offlineplayer>] [<text>] [<timespan>]:
        trigger:
            if player does not have permission "mute.use":
                send "&cYou are not permitted to run this command!"
                stop
            if arg-2 is not set:
                send "&c/mute (player) [reason] [-s] (time)"
                stop
            if arg-1 has permission "mute.use":
                send "&cThat player cannot be muted!"
                stop
            if player is not set:
                set {_p} to "CONSOLE"
            else:
                set {_p} to player
            if {%arg-1%.muted} is set:
                send "&cThat player is already muted!"
                stop
            if arg-2 is not set:
                set {_r} to "N/A"
            else:
                set {_r} to arg-2
            set {_l} to "%arg-3%"
            set {_l} to "%capitalized {_l}%"
            if {_r} contains "-s":
                replace all " -s" and "-s " with "" in {_r}
                set {_silent} to true
            if {_silent} is set:
                loop all players:
                    if loop-player has permission "mute.use":
                        send "&7&o(SILENT) &b%{_p}% &7muted &b%arg-1% &7for &c%{_r}% &7[%{_l}%]" to loop-player
            else:
                broadcast "&b%{_p}% &7muted &b%arg-1% &7for &c%{_r}% &7[%{_l}%]"
            set {muted.%arg-1%} to true
            add arg-1 to {mutelist::*}
            set {%arg-1%.muted} to now
            set {%arg-1%.mutelength} to arg-3
            
    command /unmute [<offlineplayer>] [<text>]:
        trigger:
            if player does not have permission "mute.use":
                send "&cYou are not permitted to run this command!"
                stop
            if arg-1 is not set:
                send "&c/mute (player) [-s]"
                stop
            if arg-1 has permission "mute.use":
                send "&cYou cannot unmute this player!"
                stop
            if player is not set:
                set {_p} to "CONSOLE"
            else:
                set {_p} to player
            if {%arg-1%.muted} is not set:
                send "&cThat player is not muted!"
                stop
            if {_r} contains "-s":
                replace all " -s" and "-s " with "" in {_r}
                set {_silent} to true
            if {_silent} is set:
                loop all players:
                    if loop-player has permission "mute.use":
                        send "&7&o(SILENT) &b%{_p}% &7unmuted &b%arg-1%" to loop-player
            else:
                broadcast "&b%{_p}% &7unmuted &b%arg-1%"
            clear {muted.%arg-1%}
            remove arg-1 from {mutelist::*}
            clear {%arg-1%.muted}
            clear {%arg-1%.mutelength} 
            
    every 1 second:
        loop {banlist::*}:
            if {%loop-value%.banned} is set:
                if difference between now and {%loop-value%.banned} >= {%loop-value%.length}:
                    unban loop-value
                    remove loop-value from {banlist::*}
                    clear {%loop-value%.banned}
                    clear {%loop-value%.length}
        loop {mutelist::*}:
            if {%loop-value%.muted} is set:
                if difference between now and {%loop-value%.muted} >= {%loop-value%.mutelength}:
                    unban loop-value
                    clear {muted.%loop-value%}
                    remove loop-value from {mutelist::*}
                    clear {%loop-value%.muted}
                    clear {%loop-value%.mutelength}
            
    command /unban [<offlineplayer>] [<text>]:
        trigger:
            if player does not have permission "unban.use":
                send "&cYou are not permitted to run this command!"
                stop
            if arg-1 is not set:
                send "&c/unban (player) [-s]"
                stop
            if player is not set:
                set {_p} to "CONSOLE"
            else:
                set {_p} to player
            if arg-1 is not banned:
                send "&cThat player is not banned!"
                stop
            if arg-2 contains "-s":
                replace all " -s" and "-s " with "" in {_r}
                set {_silent} to true
            if {_silent} is set:
                loop all players:
                    if loop-player has permission "ban.use":
                        send "&7&o(SILENT) &b%{_p}% &7unbanned &b%arg-1%" to loop-player
            else:
                broadcast "&b%{_p}% &7unbanned &b%arg-1%"
            unban arg-1
            remove arg-1 from {banlist::*}
            
    command /warn [<offlineplayer>] [<text>]:
        trigger:
            if player does not have permission "warn.use":
                send "&cYou are not permitted to run this command!"
                stop
            if player is not set:
                set {_p} to "CONSOLE"
            else:
                set {_p} to player
            if arg-2 is not set:
                send "&c/warn (player) (reason)"
                stop
            if arg-1 has permission "warn.use":
                send "&cYou cannot warn this player!"
                stop
            broadcast "&b%{_p}% &7warned &b%arg-1%&7 for &c%arg-2%"
            if {warns.%arg-1%} is not set:
                set {warns.%arg-1%} to 1
                add arg-1 to {warnlist::*}
            else:
                add 1 to {warns.%arg-1%}
            
    command /unwarn [<offlineplayer>]:
        trigger:
            if player does not have permission "warn.use":
                send "&cYou are not permitted to run this command!"
                stop
            if arg-1 is not set:
                send "&c/unwarn (player)"
                stop
            if player is not set:
                set {_p} to "CONSOLE"
            else:
                set {_p} to player
            if {warns.%arg-1%} is not set:
                send "&cThat player has no warns!"
                stop
            else:
                broadcast "&b%player%&7 pardoned &c%arg-1%&7's warn"
                if {warns.%arg-1%} is 1:
                    clear {warns.%arg-1%}
                    remove arg-1 from {warnlist::*}
                else:
                    remove 1 from {warns.%arg-1%}
            
    on chat:
        if {muted.%player%} is set:
            send "&cYou cannot chat while muted!"
            cancel event
            
    command /banlist:
        trigger:
            if player does not have permission "ban.use":
                send "&cYou are not permitted to run this command!"
                stop
            if "%{banlist::*}%" is "none":
                send "&7No players are banned!"
                stop
            send "&bCurrent players banned:&7 %{banlist::*}%"

    command /mutelist:
        trigger:
            if player does not have permission "mute.use":
                send "&cYou are not permitted to run this command!"
                stop
            if "%{mutelist::*}%" is "none":
                send "&7No players are muted"
                stop
            send "&bCurrent players muted:&7 %{mutelist::*}%"

    command /warnlist:
        trigger:
            if player does not have permission "warn.use":
                send "&cYou are not permitted to run this command!"
                stop
            if "%{warnlist::*}%" is "none":
                send "&7No players are warned!"
                stop
            send "&bCurrent players warned:&7 %{warnlist::*}%"

    on join:
      if {warnlist::*} is not set:
        set {warnlist::*} to none

    on join:
      if {warnlist::*} is not set:
        set {mutelist::*} to none

    on join:
      if {banlist::*} is not set:
        set {banlist::*} to none
        

    • Like 1
  3. On 5/17/2020 at 2:41 PM, dragonrider9012 said:
    On 5/17/2020 at 2:38 PM, dragonrider9012 said:

    can u make a hub command that sends u to ul_hub because /hub goes to minehuts lobby (if it does work and doesnt override it)

    if it doesnt can u make a /h or /l command

    # This is to set the lobby location

    command /setlobby:
      permission: op
      permission message: &cYou do not have permission to execute this command.
      trigger:
        set {lobby} to player's location
        send "&f[&a&lLOBBY&f] &aLobby has been set to %{lobby}%&a."

     

    # These are the commands to get to the lobby

    command /l:
      trigger:
        teleport player to {lobby}
        send "&aYou have been teleported to the lobby."

    command /h:
      trigger:
        teleport player to {lobby}
        send "&aYou have been teleported to the hub."

     

  4. On 5/17/2020 at 9:39 PM, IEatBeef said:

    RTP/Wild script?

    options:
        min.x: -250 #DO NOT TOUCH!
        max.x: 250 #DO NOT TOUCH!
        min.z: -250 #DO NOT TOUCH!
        max.z: 250 #DO NOT TOUCH!
        avoid: air or water block or lava block or stone block or sandstone block or mossy cobblestone block or dirt block
        perm: sparx.wild #CHANGE TO YOUR PERMISSION!
        cooldown: 60 second #CHANGE TO YOUR COOLDOWN! (Formats: second/s, minute/s, hour/s, day/s)

    Command /wild:
        trigger:
            set {_waited} to difference between {wild.%player%.lastused} and now
            if {_waited} is less than {@cooldown}:
                message "&7(&6!&7) &eYou must wait &6%difference between {@cooldown} and {_waited}% &ebefore using this command again."
                stop

            
            send "&7(&6!&7) &eTeleporting to the Wilderness." to player
            send "&7(&6&lREMINDER&r&7) &6PvP &eis allowed in this area!" to player
            wait 1 tick
            send "&7(&6!&7) &eTeleporting in 3 Seconds."
            wait 1 second
            send "&7(&6!&7) &eTeleporting in 2 Seconds."
            wait 1 second
            send "&7(&6!&7) &eTeleporting in 1 Second."
            wait 2 second
            apply blindness 100 to player for 6 seconds
            wait 1 tick
            set {_loc::old} to player's location
            while player's location is {_loc::old}:
                set {_loc::new} to location at random number between {@min.x} and {@max.x}, 0, random number between {@min.z} and {@max.z}
                loop blocks above {_loc::new}:
                    if loop-block and block above loop-block are air:
                        if block under loop-block is not bedrock:
                            set {_loc::new} to location of loop-block
                            teleport player to {_loc::new}
                            stop loop
                            wait 10 ticks
            set {wild.%player%.lastused} to now

     

    Sorry for the late reply btw, sorta busy

  5. on rightclick:
      player's tool = ender pearl
      set {epcooldown.%player's uuid%} to 8
    #change 8 to however long you want the cooldown to be (In seconds)

    on rightclick:
      player's tool = ender pearl
      if {epcooldown.%player's uuid%} > 0:
        send action bar "&cYou are on cooldown for %{epcooldown.%player's uuid%}%&c more seconds." to player
        cancel event

        
    every second: # you may have to make it every second in "worldname":
      loop all players:
        if {epcooldown.%loop-player's uuid%} > 0:
        take 1 from {epcooldown.%loop-player's uuid%}

     

    @Cramkes

    • Like 1
  6. 3 hours ago, EpicRayGunsOwO said:

    can you make a skript where it ACTULLY crashes the players game eg:

    command /crash [<player>]:

        permission: troll.crash

        permission message: haha no crashing for u!!!

        trigger:

            crash arg 1

            send "crashed %arg 1%" to player

     

    There is no way to actually crash a player using skript. Also, I don't think Minehut staff would appriciate.

    • Like 1
  7. 5 hours ago, Drpepperguy123 said:

    Could you make a staff chat skript that is only triggered if you put # infront of the message?

    I couldn't do # as it would mess up the skript because # ignores all the code after it in that line so I changed it to @message

     

    command /sc <text>:
      permission: staffchat.use
      permission message: &cYou do not have access to use this command!
      trigger:
        loop all players:
          if loop-player has permission "staffchat.use":
            send "&8[&b&lS&3&lC&8] %player's prefix%&6%player%%player's suffix%&8: &e%colored arg-1%" to loop-player

    on chat:
      if message starts with "@":
        if player has permission "staffchat.use":
          replace first "@" with " " in message
          cancel event
          make player say "/sc %message%"

    • Like 1
  8. 1 hour ago, st3ve_3 said:

    Hi i was wondering for my server how do i make the tools unbreakable is it a skript for that 🙂 ?

    on break:
      fix player's tool

    on damage:
      fix attacker's tool

    • Like 2
  9. 11 minutes ago, TheTesc0Man said:

    Here's one that may put you to work, sellwand multipliers.

    1x,2x,4x,5x,10x,15x,20x,25x

    Not sure if you want the items that will be sold using them but here they are: wheat, sugar cane, cactus, melon slices, pumpkins, bamboo, netherwart

    Make the prices editable if possible.

    Yeah, I can't do that lol

    • Like 1
  10. 45 minutes ago, McHackLines said:

    ❤️ thanks could you do same for blocks? We have coal, coal blocks, stone, cobblestone, diamond ore, diamond blocks, emerald ore, emerald blocks, gold ore and gold blocks,

     

    thank you so much

    I have not tested the skript but it should work, also. I made it so that quartz only give 3 xp as quartz would be broken really fast and that would cause them to level up really fast however, you can change it to anything to you like by just changing "add (number of how much xp you want them to gain) to {xp.%player%}"
     

    Quote

     

    on break:
      if event-block is "cobblestone" or "stone":
        add 1 to {xp.%player%}
        else if event-block is "coal ore" or "coal block":
          add 2 to {xp.%player%}
        else if event-block is "iron ore" or "iron block":
          add 3 to {xp.%player%}
        else if event-block is "gold ore" or "block block":
          add 4 to {xp.%player%}
        else if event-block is "emerald ore" or "emerald ore":
          add 5 to {xp.%player%}
        else if event-block is "diamond ore" or "diamond block":
          add 6 to {xp.%player%}
        else if event-block is "quartz ore" or "quartz block":
          add 3 to {xp.%player%}

    on break:
      if {xp.%player%} >= 1000:
        add 1 to {level.%player%}
        send "&a&lLEVEL UP!"
        send "&7&oYou have reached level %{level.%player%}%&7."
        broadcast "&a%player% &7has reached &a%{level.%player%}%&a!"

    command /level:
      trigger:
        send ""
        send "&7You are currently &alevel %{level.%player%}%"
        send "&7Level-up XP: &a{xp.%player%}&7/&a1000"
        send ""

        

    on join:
      if {level.%player%} is not set:
        set {level.%player%} to 0
        
    on join:
      if {xp.%player%} is not set:
        set {xp.%player%} to 0

     


        

    If you have any issues with this skript, send me a message!

    • Like 1
  11. 2 minutes ago, st3ve_3 said:

    could you make like an anticheat?

     

    That's more advanced + I'm pretty sure skript anticheats would be a bad idea for minehut as the servers get pretty laggy so it could false-ban / false-report

    • Like 1
  12. 1 minute ago, McHackLines said:

    ❤️ thanks could you do same for blocks? We have coal, coal blocks, stone, cobblestone, diamond ore, diamond blocks, emerald ore, emerald blocks, gold ore and gold blocks,

     

    thank you so much

    Okay, don't add the previous skript i sent as the xp only goes to 5 before they levelup and theres more than 5 blocks which means that they would level up way to fast

    • Like 1
  13. 3 hours ago, st3ve_3 said:

    level up skript for sky mining / sky prison servers please

    Not sure this is what you meant, If not just reply with the skript you want but in more detail.

     

    on chat:
        set chat format to "&7[&e%{level.%player's uuid%}%⭐&7] &7%player's prefix%%player%%player's suffix%&8: &7%message%"

    on death:
      add 1 to {xp.%attacker%}
      
    on death:
      if {xp.%attacker%} >= 5:
        set {xp.%attacker%} to 0
        add 1 to {level.%attacker%}
        send "&a&lLEVEL UP!"
        send "&7&oYou are now level %{level.%attacker%}%"
        broadcast "&a%player% &7is now level &a%{level.%player%}%&a!"

    command /level:
      trigger:
        send "&aYour level: &e%{level.%player%}%&e⭐"

    command /xp:
      trigger:
        send "&aYour level-up xp: &e{xp.%player%}&7/&e5"

     

    @McHackLines

    • Like 2
  14. Quote

    i want a spawn skript so u can /spawn

    command /setspawn:
      permission: spawn.set
      permission message: &cYou do not have access to this command.
      trigger:
        set {spawn} to player's location
        send "&aSpawn has been set to: &2%{spawn}%" to player

    command /spawn:
      trigger:
        send "&aYou will be teleported to spawn in 5 seconds."
        wait 5 seconds
        teleport player to {spawn}

    command /spawn:
      trigger:
        send "&aTeleporting..."
        teleport player to {spawn}

     

    The code I have put in red you pick one or the other to add, the bottom one makes them teleport instantly and the one above makes them wait 5 seconds before they get teleported.

     

    @st3ve_3

    • Like 1
  15. Needed plugin(s) / add-on(s):
    Skript

    Permission node: staff.cspy
    Usage: /commandspy (on/off)
    Aliases: /cspy


    This is a Command Spy skript that is fully customizable, If you have any suggestions please leave a comment.

    If you know even a little bit of Skript then you should know how to change the color codes for the Skript.

    commandspy.txt

    • Confused 1
  16. Needed plugin(s) / add-on(s):
    Skript

    Permission node: none (But your staff will need the permission node "staff.report" to get notified about the report)
    Usage: /report <player> <reason>

    This is a player report skript that is fully customizable, If you have any suggestions please leave a comment.

    When you run the command /report <player> <reason>, it will send the report to all online staff on your server (Staff must have the permission "staff.report" to get notified about reports).

    If you know even a little bit of Skript then you should know how to change the color codes or the format for the Skript.

    report.txt

  17. Needed plugin(s) / add-on(s):
    Skript

    Permission node: staffchat.use and mutechat.bypass
    Usage: /mutechat

    This is a Mute Chat skript that is fully customizable, If you have any suggestions please leave a comment.

    When you run the command /mutechat, it will mute the chat so nobody can talk (unless they have the permission "mutechat.bypass").

    If you know even a little bit of Skript then you should know how to change the color codes or the format for the Skript.

    mutechat.txt

    • Like 3
  18. Needed plugin(s) / add-on(s):
    Skript

    Permission node: clearchat.use
    Usage: /clearchat
    Aliases: /cc, /chatclear

    This is a very simple Clear-Chat skript that is fully customizable, If you have any suggestions please leave a comment.

    If you know even a little bit of Skript then you should know how to change the color codes for the Skript.

    ClearChat.sk

    • Like 1
×
×
  • Create New...