Jump to content

Hitmorningstar

Member
  • Posts

    13
  • Joined

  • Last visited

Posts posted by Hitmorningstar

  1. On 3/2/2023 at 4:50 PM, zyria said:

    For some odd reason my skript will not work and i can't figure it out please help
     

    on load:
    	clear {_swords::*}
    	add "iron sword", "diamond sword" and "stone sword" to {_swords::*}
    command sword:
    	trigger:
    		set {_random} to a random element of {_swords::*}
    		give {_random} to player
    		send "test"

     

    on load:
        clear {_swords::*}
        add "iron sword", "diamond sword" and "stone sword" to {_swords::*}
    command /sword:
        trigger:
            set {_random} to a random element of {_swords::*}
            give {_random} to player
            send "test"
  2. command /staffchat [<text>]:
      aliases: /sc
      permission: staffchat.mod
      permission message: &cNo permission!
      trigger:
        if arg 1 is not set:
          send "&cUsage: /staffchat <message>" to player
        if arg 1 is set:
          loop all players:
            if loop-player has permission "staffchat.mod":
              send "&b[StaffChat] &7%player%&7: &f%arg 1%" to loop-player


    #/sc works but for some reason /staffchat doesn't work if you want to do that but like i said /sc does work.

    Screenshot_2.png.df76938f045a9e873db6a52bd1dd62f0.png

  3. command /mutechat:
      permission: mutechat.mod
      permission message: &cNo permission!
      trigger:
        if {mutechat} is false:
          set {mutechat} to true
          broadcast "&cChat has been muted by &c%player%"
        else:
          set {mutechat} to false
          broadcast "&aChat has been unmuted by &a%player%"

    on chat:
      if player does not have permission "mutechat.bypass":
        if {mutechat} is true:
          cancel event
          send "&cChat is currently muted." to player

  4. command /clearchat:
      aliases: /cc
      permission: clearchat.mod
      permission message: &cNo permission!
      trigger:
        loop 100 time:
          broadcast ""
        send "&aChat has been cleared by &a%player%"

  5. command /dupe:
      trigger:
        give player player's held item
        if player's held item is air:
          message "&cYou need to hold a item!" to player
        else:
          play sound "ENTITY_PLAYER_LEVELUP" to player

  6. command /broadcast [<text>]:
      permission: broadcast.use
      permission message: &cNo permission!
      trigger:
        if arg 1 is not set:
          send "&7Please write something to broadcast!" to player
          stop
        if arg 1 is set:
          broadcast ""
          broadcast "&4&lBROADCAST"
          broadcast "&7%arg 1%"
          broadcast ""

  7. On 4/28/2023 at 12:11 PM, BLK22 said:

    Hi, i need some help to complete this script.

    I am looking for create an command (/heal) which can be used by players who their health isn't to the max (i dont know if you unterstand me)

    Here is my code :

    command /heal:
        permission: sk.heal
        permission message: "&cTu n'as &lpas la permission&r &cd''executer cette commande !"
        aliases: /hl
        trigger:
            if player's health is:
                send "&cVotre vie est au &lMaximum &c!"
            else:
                heal player
                send "&aVotre vie est de nouveau au &2&lMaximum &a!"

     

    I am french so if you see some misstakes, I am sorry !

    command /heal:
        permission: sk.heal
        permission message: "&cTu n'as &lpas la permission&r &cd''executer cette commande !"
        aliases: /hl
        trigger:
            if player's health is 10:
                send "&cVotre vie est au &lMaximum &c!"
            else:
                heal player
                send "&aVotre vie est de nouveau au &2&lMaximum &a!"

     

    #that should fix it for you

  8. On 7/13/2023 at 9:59 AM, CustomlyGamingYT said:

    So I found this skript and i put it in my script but I tried to add more now what am I doing wrong?

    every 2 minutes:
        set {_broadcast} to random integer between 1 and 10
        if {_broadcast} = 1:
            broadcast "&9&lTIP: &9Use /tpr to go to a random place!"
        if {_broadcast} = 2:
            broadcast "&cMake sure to vote here! <link:https://best-minecraft-servers.co/server-phrasestaff-city.17541/vote>Click here."
        if {_broadcast} = 3:
            broadcast "&2Please favourite the game and share it with others! It will support us"
        if {_broadcast} = 4:
            broadcast "&6Inflation comes to this game!&c Sadly, you now have to buy ranks on the website &9 (phrasestnetwork.tebex.io)&4Do Not&c give the papers to a staff member."
        if {_broadcast} = 5:
            broadcast "&c&lPlease read the rules!&c There are certain immidiate ban rules and it could happen to &2you!"
            if {_broadcast} = 6:
            broadcast "&aThank you for playing the game.&9 If you would like to visit our online store go to &6www.phrasestnetwork.tebex.io"
            if {_broadcast} = 7:
            broadcast "&bBuying ranks on the website support us and help us grow. &6 If you would like to help us grow, please /ad PhraseSTCity in the lobby!"
            if {_broadcast} = 8:
            broadcast "&9&lTIP:&9 When reporting people breaking rules when staff are offline can get you a Jr Helper rank!&c (there is no /gmc /ban /kick etc.) "
            if {_broadcast} = 9:
             "&7There is a new kingdom!&c /warp &9CGBase"
            if  {_broadcast} = 10:
            broadcast "&4Our Staff applications are full!&c This means that we do not need staff at this time."

    every 2 minutes:
        set {_broadcast} to random integer between 1 and 10
        if {_broadcast} = 1:
            broadcast "&9&lTIP: &9Use /tpr to go to a random place!"
        if {_broadcast} = 2:
            broadcast "&cMake sure to vote here! <link:https://best-minecraft-servers.co/server-phrasestaff-city.17541/vote>Click here."
        if {_broadcast} = 3:
            broadcast "&2Please favourite the game and share it with others! It will support us"
        if {_broadcast} = 4:
            broadcast "&6Inflation comes to this game!&c Sadly, you now have to buy ranks on the website &9 (phrasestnetwork.tebex.io)&4Do Not&c give the papers to a staff member."
        if {_broadcast} = 5:
            broadcast "&c&lPlease read the rules!&c There are certain immidiate ban rules and it could happen to &2you!"
        if {_broadcast} = 6:
            broadcast "&aThank you for playing the game.&9 If you would like to visit our online store go to &6www.phrasestnetwork.tebex.io"
        if {_broadcast} = 7:
            broadcast "&bBuying ranks on the website support us and help us grow. &6 If you would like to help us grow, please /ad PhraseSTCity in the lobby!"
        if {_broadcast} = 8:
            broadcast "&9&lTIP:&9 When reporting people breaking rules when staff are offline can get you a Jr Helper rank!&c (there is no /gmc /ban /kick etc.) "
        if {_broadcast} = 9:
            broadcast "&7There is a new kingdom!&c /warp &9CGBase"
        if  {_broadcast} = 10:
            broadcast "&4Our Staff applications are full!&c This means that we do not need staff at this time."
  9. command /food:
      cooldown: 1 day
      cooldown message: &cYou must wait 1 day before claiming your daily food again!
      trigger:
        execute console command "give %player% cooked_beef 32"
        send "&aYou have claimed your daily food!" to player

    #im a solo skripter i had no other players test this i tested it on myself, if anything is wrong with it i apologize. 

  10. On 10/3/2021 at 8:27 PM, sulf said:

    Hey guys

    I need to force new players to input a command, but i don't know how. 

    What i currently have doesn't work:

    on first join:
            execute command "/spawn"

    I know there's something wrong with my script, I would be thankful if I could get some help with it! 

    on first join:
      execute player command "/spawn"

×
×
  • Create New...