"every 1 minute" Outputting an error

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

CloudSwap

Member
Oct 5, 2020
4
0
1
16
So basically, I'm trying to make a code to where every 1 minute the border expands by a certain amount.
The only thing that doesn't work is the "every 1 minute" part, and for some reason, that doesn't work.

Skript Version: 2.4 (or at least that's what i heard it is, as i'm doing this on the server-hoster Minehut)
MC Version: 1.16.3

Code:
command /expborder toggle:
    description: Start/stop the expansion of the border.
    permission: skript.border
    permission message: "You don't have the permission to start or stop the expansion."
    trigger:
        if {expborder} is false:
            set {expborder} to true
            broadcast "&9SMPborder &7>> &r%player% has started the expansion."
        else:
            set {expborder} to false
            broadcast "&9SMPborder &7>> &r%player% has stopped the expansion."
        every 1 minute

Can't understand this condition/effect: every 1 minute
 
So basically, I'm trying to make a code to where every 1 minute the border expands by a certain amount.
The only thing that doesn't work is the "every 1 minute" part, and for some reason, that doesn't work.

Skript Version: 2.4 (or at least that's what i heard it is, as i'm doing this on the server-hoster Minehut)
MC Version: 1.16.3

Code:
command /expborder toggle:
    description: Start/stop the expansion of the border.
    permission: skript.border
    permission message: "You don't have the permission to start or stop the expansion."
    trigger:
        if {expborder} is false:
            set {expborder} to true
            broadcast "&9SMPborder &7>> &r%player% has started the expansion."
        else:
            set {expborder} to false
            broadcast "&9SMPborder &7>> &r%player% has stopped the expansion."
        every 1 minute
You cant put every anytime inside a command
 
You cant put every anytime inside a command
Then how is it supposed to be used?
Sorry about that, I don't really know much about skript, as this was a one-time thing for my server that had to be done to make the idea work.
 
Then how is it supposed to be used?
Sorry about that, I don't really know much about skript, as this was a one-time thing for my server that had to be done to make the idea work.
What is the minimum and the maximum border size? I need to know to fix this code for you
 
Sorry for teh bump
Code:
command /expborder toggle:
    description: Start/stop the expansion of the border.
    permission: skript.border
    permission message: "You don't have the permission to start or stop the expansion."
    trigger:
        if {expborder} is false:
            set {expborder} to true
            broadcast "&9SMPborder &7>> &r%player% has started the expansion."
        else:
            set {expborder} to false
            broadcast "&9SMPborder &7>> &r%player% has stopped the expansion."
        set {bar} to 1

every 1 minute:
  if {bar} is 1:
    # do dis
  else:
    # do dat
 
Status
Not open for further replies.