Jump to content

MrScopes

Member
  • Posts

    96
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by MrScopes

  1. On 3/26/2021 at 1:14 AM, ForestHunters said:

    It's been possible with Essentials before they added a confirmation of the decision. So I figured it'll work with Skript.

    
    command /reboot:
    	trigger:
    		execute console command "/reload"
    		wait a tick
    		execute console command "/reload confirm"

    And yup. It works. I do not recommend doing this, it's merely for experimenting.

    I added "wait a tick" just incase "/reload confirm" doesn't interfere with the original reload command.

    you can also just 

    !command "rl confirm"

    if you have effect commands enabled

  2. On 10/12/2020 at 10:50 AM, ChunkerDunkers said:

    Here you go! 

    
    every second:
        loop all players:
            add 1 to {s::%loop-player's uuid%}
            if {s::%loop-player's uuid%} > 59:
                remove 60 from {s::%loop-player's uuid%} 
                add 1 to {m::%loop-player's uuid%}
            if {m::%loop-player's uuid%} > 59:
                remove 60 from {m::%loop-player's uuid%}
                add 1 to {h::%loop-player's uuid%}
            if {h::%loop-player's uuid%} > 23:
                remove 24 from {h::%loop-player's uuid%}
                add 1 to {d::%loop-player's uuid%}
    
    command /playtime [<offlineplayer>]:
        trigger:
            arg isn't set:
                wait 1 tick
                send ""
                send "&f&l    YOUR PLAYTIME (&7&l%player%&f)"
                send ""
                send "&f&l  SECONDS:&7 %{s::%player's uuid%}%"
                send "&f&l  MINUTES:&7 %{m::%player's uuid%}%"
                send "&f&l  HOURS:&7 %{h::%player's uuid%}%"
                send "&f&l  DAYS:&7 %{d::%player's uuid%}%"
                send ""
            else:
                wait 1 tick
                send ""
                send "&f&l    PLAYTIME OF &7&l%arg%"
                send ""
                send "&f&l  SECONDS:&7 %{s::%arg's uuid%}%"
                send "&f&l  MINUTES:&7 %{m::%arg's uuid%}%"
                send "&f&l  HOURS:&7 %{h::%arg's uuid%}%"
                send "&f&l  DAYS:&7 %{d::%arg's uuid%}%"
                send ""
    
    on damage:
        attacker is a player
        Victim is a player
        {m::%victim%} is smaller than 30
        cancel event

     

    yikes

  3. On 8/24/2019 at 5:48 PM, farwl said:
    
    Options:
    	killreward: 10
        # The amount money you get when you get a kill (Just a number)
    
    death of player:
    	attacker is player:
        	add {@killreward} to attacker's balance

    🤢

     

  4. If your server doesn't use Skript's "send formatted" effect, you're in the clear.


    Basically if your server uses "send formatted", users can sudo other users when they click the chat message.

    Assuming the "send formatted" is in your [item] code, here's a solution:

    on chat:
    	if message contains "[item]":
    		cancel event
    		replace all "<" and ">" with "" in message
    		# do [item] stuff
    		send formatted "&7%player%&8: &f%message%" to all players
    	else:
    		set chat format to "&7%player%&8: &f%message%"

    It's extremely easy to abuse "send formatted" so for server security I'm not explaining how to use it.

    • Like 1
    • Sad 1
  5. honestly just use something like this
     

    command /gmc [<offline player=%player%>]:
        permission: gamemode.creative
        trigger:
    		set arg's gamemode to creative
    		send "&7Updated &b%arg%&7's gamemode to &bcreative&7."
    		send "&7Your gamemode has been set to &bcreative&7." if arg isn't player

     

    • Like 1
  6. on load:
        set {i::*} to all items
        remove barrier from {i::*}
    
    every 20 seconds:
        {give} isn't set
        loop all players:
            set {_i} to a random item out of {i::*}
            give loop-player 1 of {_i}
            
    command /toggle:
        description: enable/disable users receiving items periodically
        permission: op
        trigger:
            if {give} isn't set:
                send "&aEnabled &7periodic items."
                set {give} to true
            else:
                send "&cDisabled &7periodic items."
                delete {give}

     

×
×
  • Create New...