Plot Skript

  • 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!

x98

New Member
Sep 3, 2023
6
0
1
23
i have problem i have a plot skript and its work but it have a error at line 8 and 351 and i can't fix it and it say on consel "[Skript] Couldn't resolve call for 'updatePlotSigns'."
1693829977497.png
"
skript Below:

options:
error: &4&lERROR &8| &7
prefix: &b&ltest &7| &7
every 1 second:
updatePlotSigns()
function updatePlotSigns():
loop {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::*}:
wait 2 ticks
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::emoji_astonished:wner} is set:
if now >= {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::expires}:
loop {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::members::*}:
make console execute "/rg removemember %{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index-1%::region}% %loop-value-2% -w world"
delete {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index-1%::emoji_astonished:wner}
delete {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index-1%::members::*}
delete {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index-1%::expires}
delete {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index-1%::slots}
if block at {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::sign} is not sign:
set block at {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::sign} to oak sign
set {_sign} to block at {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::sign}
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::emoji_astonished:wner} is set:
set {_x} to difference between {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::expires} and now
set {_x} to prettifyTimespan({_x})
replace all ":" in {_x} with "&8&l:&f"

set line 1 of {_sign} to "&4&l[Rented Plot]"
set line 2 of {_sign} to "&f&l%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::emoji_astonished:wner}%"
set line 3 of {_sign} to "&f%{_x}%"
set line 4 of {_sign} to "&f%size of {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::members::*}%&8/&f%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::slots}% &8| &fSlots"
else:
set line 1 of {_sign} to "&a&l[Rent Plot]"
set line 2 of {_sign} to "&fPrice &8| &f%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::rent} * 3% &fCoins"
set line 3 of {_sign} to ""
set line 4 of {_sign} to ""
delete {_sign}
function addMember(id: text, player: text):
add "%{_player}%" to {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_id}%::members::*}
make console execute "/rg addmember %{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_id}%::region}% %{_player}% -w world"
function removeMember(id: text, player: text):
remove "%{_player}%" from {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_id}%::members::*}
make console execute "/rg removemember %{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_id}%::region}% %{_player}% -w world"
command /plotmanager <text> [<text>] [<text>]:
aliases: /plotman
permission: server.plotmanager
permission message: {@error}You do not have the required permission &8(&c&lserver.plotmanager&8)
usage: {@error}Incorrect usage&8: &c&l/plotmanager help
trigger:
if arg-1 is "create":
if arg-2 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager create <id>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is set:
message "{@error}A plot with this id already exists"
stop
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} to true
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires} to now
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::rent} to 10
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::slots} to 1
add 2 days to {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires}
message "{@prefix}Created a plot with id &b&l%arg-2%"
else if arg-1 is "delete":
if arg-2 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager delete <id>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
delete {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::*}
delete {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%}
message "{@prefix}Deleted the plot with id &b&l%arg-2%"
else if arg-1 is "setwgregion":
if arg-3 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager setwgregion <id> <region>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::region} to arg-3
message "{@prefix}Set &b&l%arg-2%&7's region to &b&l%arg-3%"
else if arg-1 is "setsign":
if arg-2 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager setsign <id>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
message "{@prefix}Please place a sign to set it as &b&l%arg-2%&7's sign"
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:layers::%player%::setplotsign} to true
while {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:layers::%player%::setplotsign} is true:
wait 1 second
close player's inventory
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::sign} to {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:layers::%player%::setplotsign}
delete {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:layers::%player%::setplotsign}
message "{@prefix}Set &b&l%arg-2%&7's sign to &b&l%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::sign}%"
updatePlotSigns()
else if arg-1 is "setrent":
if arg-3 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager setrent <id> <price per day>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
set {_rent} to arg-3 parsed as number
if "%{_rent}%" is "<none>":
message "{@error}Incorrect usage: &c&l/plotmanager setrent <id> <price per day>"
stop
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::rent} to {_rent}
message "{@prefix}Set &b&l%arg-2%&7's rent to &b&l%{_rent}%"
updatePlotSigns()
else if arg-1 is "setslots":
if arg-3 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager setslots <id> <number of slots>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
set {_slots} to arg-3 parsed as number
if "%{_slots}%" is "<none>":
message "{@error}Incorrect usage: &c&l/plotmanager setslots <id> <number of slots>"
stop
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::slots} to {_slots}
message "{@prefix}Set &b&l%arg-2%&7's slots to &b&l%{_slots}%"
updatePlotSigns()
else if arg-1 is "add":
if arg-3 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager add <id> <member>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
set {_p} to arg-3 parsed as player
if {_p} is not online:
message "{@error}That player is not online"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::members::*} contains "%{_p}%":
message "{@error}That player is already a member of that plot"
stop
addMember(arg-2, "%{_p}%")
message "{@prefix}Added &b&l%{_p}%&7 to plot &b&l%arg-2%"
updatePlotSigns()
else if arg-1 is "kick":
if arg-3 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager kick <id> <member>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
set {_p} to arg-3 parsed as player
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::members::*} does not contain "%{_p}%":
message "{@error}That player is not a member of that plot"
stop
removeMember(arg-2, {_p})
message "{@prefix}Removed &b&l%{_p}%&7 from plot &b&l%arg-2%"
updatePlotSigns()
else if arg-1 is "setowner":
if arg-3 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager setowner <id> <member>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
set {_p} to arg-3 parsed as offline player
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::members::*} does not contain "%{_p}%":
message "{@error}That player is not a member of that plot"
stop
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::emoji_astonished:wner} to {_p}
message "{@prefix}Set &b&l%arg-2%&7's owner to &b&l%{_p}%"
updatePlotSigns()
else if arg-1 is "evict":
if arg-2 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager evict <id>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
if "%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::members::*}%" is "<none>":
message "{@error}This plot has no members"
stop
message "{@prefix}Evicted &b&l%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::members::*}%&7 from &b&l%arg-2%"
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires} to now
remove 5 minutes from {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires}
updatePlotSigns()
else if arg-1 is "addrent":
if arg-3 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager addrent <id> <time>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
if "%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::members::*}%" is "<none>":
message "{@error}This plot has no members"
stop
set {_t} to parseTimespan(arg-3)
if "%{_t}%" is "<none>":
message "{@error}Invalid timespan"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires} is not set:
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires} to now
set {_exp} to {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires}
add {_t} to {_exp}
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires} to {_exp}
updatePlotSigns()
message "{@prefix}Extended &b&l%arg-2%&7's rent by &b&l%{_t}%&7 it will expire on &b&l%{_exp}%"
else if arg-1 is "info":
if arg-2 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager info <id>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
message ""
message "&bPlot &l%arg-2%"
message ""
message "&bOwner &8» &f%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::emoji_astonished:wner}%"
message "&bMembers &8[&7%size of {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::members::*}%&8/&7%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::slots}%&8]"
message "&7%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::members::*}%"
message ""
message "&bSign &8» &f%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::sign}%"
message "&bWG Region &8» &f%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::region}%"
message ""
message "&bExpires &8» &f%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires}% &8[&7%prettifyTimespan(difference between now and {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires})%&8]"
message formatted "<cmd:/plotman evict %arg-2%>&c&l[CLICK HERE TO EVICT]"
message ""
else:
message ""
message "&b/plotmanager create <id>"
message "&b/plotmanager delete <id>"
message "&b/plotmanager setwgregion <id> <region>"
message "&b/plotmanager setsign <id>"
message "&b/plotmanager setrent <id> <price per day>"
message "&b/plotmanager setslots <id> <number of slots>"
message ""
message "&b/plotmanager add <id> <member>"
message "&b/plotmanager kick <id> <member>"
message "&b/plotmanager setowner <id> <member>"
message "&b/plotmanager evict <id>"
message "&b/plotmanager addrent <id> <time>"
message ""
message "&b/plotmanager info <id>"
message ""
on place of sign:
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:layers::%player%::setplotsign} is true:
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:layers::%player%::setplotsign} to location of event-block
on right click on sign:
loop {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::*}:
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::sign} is location of event-block:
message "{@prefix}Plot id: &b&l%loop-index%"
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::emoji_astonished:wner} is player:
openPlotsMenu(loop-index, player)
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::emoji_astonished:wner} is set:
message "{@error}Someone has already rented this plot"
stop
set {_rent} to {server::items::coin}
{_rent}.setAmount({server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::rent} * 6)
if player does not have {_rent}:
message "{@error}You dont have enough coins in your inventory to rent this plot"
stop
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::slots} to 1
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::emoji_astonished:wner} to player
addMember(loop-index, "%player%")
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::expires} to now
add 2 day to {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::expires}
remove {_rent} from player
message "{@prefix}This plot is now rented by you"
function openPlotsMenu(id: text, player: player):
if name of {_player}'s current inventory is not "&a&lPlot Managment":
open chest inventory with 3 rows named "&a&lPlot Managment" to {_player}
set {server::emoji_stuck_out_tongue:lots::currentplotmenu::%{_player}%} to {_id}
set {_i} to 0
loop 27 times:
set slot {_i} of {_player}'s current inventory to gray stained glass pane named " "
add 1 to {_i}
set slot 10 of {_player}'s current inventory to paper named "&aMembers" with lore "&7Click to open the members menu"
set slot 13 of {_player}'s current inventory to paper named "&aPay Rent" with lore "&7Cost &8| &f%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_id}%::rent}%&fC" and "&7Remaining Rent &8| &f%prettifyTimespan(difference between now and {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_id}%::expires})%"
set slot 16 of {_player}'s current inventory to paper named "&aAdd Slots" with lore "&7Cost &8| &f32C" and "&7Current Slots &8| &f%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_id}%::slots}%&8/&f14"
on inventory click:
if name of event-inventory is "&a&lPlot Managment":
cancel event
if name of event-item is "&aMembers":
set {_plot} to {server::emoji_stuck_out_tongue:lots::currentplotmenu::%player%}
open chest inventory with 4 rows named "&a&lMember Managment" to player
set {_i} to 0
loop 36 times:
set slot {_i} of player's current inventory to gray stained glass pane named " "
add 1 to {_i}
set {_i} to 10
loop 14 times:
set slot {_i} of player's current inventory to barrier named "&cYou can unlock this slot in the main menu"
add 1 to {_i}
if mod({_i}, 9) is 8:
add 2 to {_i}
set {_i} to 10
loop {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_plot}%::slots} times:
set slot {_i} of player's current inventory to player skull named "&eEmpty Member Slot" with lore "&fClick to add a player"
add 1 to {_i}
if mod({_i}, 9) is 8:
add 2 to {_i}
set {_i} to 10
loop {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_plot}%::members::*}:
set {_x} to loop-value parsed as offline player
if {_x} is {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_plot}%::emoji_astonished:wner}:
set slot {_i} of player's current inventory to skull of {_x} named "&c&l%loop-value%" with lore "&fPlot Owner"
else:
set slot {_i} of player's current inventory to skull of {_x} named "&e&l%loop-value%" with lore "&fClick to kick"
add 1 to {_i}
if mod({_i}, 9) is 8:
add 2 to {_i}
if name of event-item is "&aPay Rent":
set {_plot} to {server::emoji_stuck_out_tongue:lots::currentplotmenu::%player%}
set {_remaining} to difference between now and {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_plot}%::expires}
if {_remaining} >= 6 days:
close player's inventory
message "{@error}You have already extended this plot's expiration time to the maximum"
stop
set {_rent} to {server::items::coin}
{_rent}.setAmount{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_plot}%::rent}
if player does not have {_rent}:
close player's inventory
message "{@error}You dont have enough coins in your inventory to extend this plot's expiration time"
stop
remove {_rent} from player
add 1 day to {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_plot}%::expires}
updatePlotSigns()
openPlotsMenu({_plot}, player)
stop
if name of event-item is "&aAdd Slots":
set {_plot} to {server::emoji_stuck_out_tongue:lots::currentplotmenu::%player%}
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_plot}%::slots} >= 14:
close player's inventory
message "{@error}This plot already has the max amount of slots"
stop
set {_rent} to {server::items::coin}
{_rent}.setAmount(32)
if player does not have {_rent}:
close player's inventory
message "{@error}You dont have enough coins in your inventory to add a slot to this plot"
stop
remove {_rent} from player
add 1 to {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_plot}%::slots}
updatePlotSigns()
openPlotsMenu({_plot}, player)
stop
if name of event-inventory is "&a&lMember Managment":
cancel event
if uncolored name of event-item is "Empty Member Slot":
close player's inventory
message "{@prefix}Type the name of the player you wish to add in the chat"
set {server::emoji_stuck_out_tongue:lots::addingmember::%player%} to true
while {server::emoji_stuck_out_tongue:lots::addingmember::%player%} is true:
wait 1 second
set {_adding} to {server::emoji_stuck_out_tongue:lots::addingmember::%player%} parsed as player
delete {server::emoji_stuck_out_tongue:lots::addingmember::%player%}
if "%{_adding}%" is "<none>":
message "{@error}That is not a valid player"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{server::emoji_stuck_out_tongue:lots::currentplotmenu::%player%}%::members::*} contains "%{_adding}%":
message "{@error}That player is already a part of your plot"
stop
addMember({server::emoji_stuck_out_tongue:lots::currentplotmenu::%player%}, "%{_adding}%")
message "{@prefix}Added &b&l%{_adding}% &7to your plot"
loop {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{server::emoji_stuck_out_tongue:lots::currentplotmenu::%player%}%::members::*}:
if loop-value is not {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{server::emoji_stuck_out_tongue:lots::currentplotmenu::%player%}%::emoji_astonished:wner}:
if uncolored name of event-item is "%loop-value%":
close player's inventory
removeMember({server::emoji_stuck_out_tongue:lots::currentplotmenu::%player%}, loop-value)
message "{@prefix}Removed &b&l%loop-value% &7from your plot"
stop

on chat:
if {server::emoji_stuck_out_tongue:lots::addingmember::%player%} is true:
cancel event
set {_m} to message
set {_m} to uncolored {_m}
replace all "@" in {_m} with ""
set {server::emoji_stuck_out_tongue:lots::addingmember::%player%} to {_m}
 
I think it's because you called the function before it recognized it?
You have updatePlotSigns() before function updatePlotSigns().
Try switching their place.
 
i have problem i have a plot skript and its work but it have a error at line 8 and 351 and i can't fix it and it say on consel "[Skript] Couldn't resolve call for 'updatePlotSigns'."
View attachment 7819"
skript Below:

options:
error: &4&lERROR &8| &7
prefix: &b&ltest &7| &7
every 1 second:
updatePlotSigns()
function updatePlotSigns():
loop {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::*}:
wait 2 ticks
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::emoji_astonished:wner} is set:
if now >= {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::expires}:
loop {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::members::*}:
make console execute "/rg removemember %{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index-1%::region}% %loop-value-2% -w world"
delete {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index-1%::emoji_astonished:wner}
delete {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index-1%::members::*}
delete {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index-1%::expires}
delete {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index-1%::slots}
if block at {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::sign} is not sign:
set block at {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::sign} to oak sign
set {_sign} to block at {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::sign}
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::emoji_astonished:wner} is set:
set {_x} to difference between {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::expires} and now
set {_x} to prettifyTimespan({_x})
replace all ":" in {_x} with "&8&l:&f"

set line 1 of {_sign} to "&4&l[Rented Plot]"
set line 2 of {_sign} to "&f&l%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::emoji_astonished:wner}%"
set line 3 of {_sign} to "&f%{_x}%"
set line 4 of {_sign} to "&f%size of {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::members::*}%&8/&f%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::slots}% &8| &fSlots"
else:
set line 1 of {_sign} to "&a&l[Rent Plot]"
set line 2 of {_sign} to "&fPrice &8| &f%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::rent} * 3% &fCoins"
set line 3 of {_sign} to ""
set line 4 of {_sign} to ""
delete {_sign}
function addMember(id: text, player: text):
add "%{_player}%" to {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_id}%::members::*}
make console execute "/rg addmember %{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_id}%::region}% %{_player}% -w world"
function removeMember(id: text, player: text):
remove "%{_player}%" from {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_id}%::members::*}
make console execute "/rg removemember %{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_id}%::region}% %{_player}% -w world"
command /plotmanager <text> [<text>] [<text>]:
aliases: /plotman
permission: server.plotmanager
permission message: {@error}You do not have the required permission &8(&c&lserver.plotmanager&8)
usage: {@error}Incorrect usage&8: &c&l/plotmanager help
trigger:
if arg-1 is "create":
if arg-2 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager create <id>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is set:
message "{@error}A plot with this id already exists"
stop
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} to true
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires} to now
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::rent} to 10
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::slots} to 1
add 2 days to {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires}
message "{@prefix}Created a plot with id &b&l%arg-2%"
else if arg-1 is "delete":
if arg-2 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager delete <id>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
delete {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::*}
delete {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%}
message "{@prefix}Deleted the plot with id &b&l%arg-2%"
else if arg-1 is "setwgregion":
if arg-3 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager setwgregion <id> <region>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::region} to arg-3
message "{@prefix}Set &b&l%arg-2%&7's region to &b&l%arg-3%"
else if arg-1 is "setsign":
if arg-2 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager setsign <id>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
message "{@prefix}Please place a sign to set it as &b&l%arg-2%&7's sign"
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:layers::%player%::setplotsign} to true
while {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:layers::%player%::setplotsign} is true:
wait 1 second
close player's inventory
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::sign} to {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:layers::%player%::setplotsign}
delete {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:layers::%player%::setplotsign}
message "{@prefix}Set &b&l%arg-2%&7's sign to &b&l%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::sign}%"
updatePlotSigns()
else if arg-1 is "setrent":
if arg-3 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager setrent <id> <price per day>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
set {_rent} to arg-3 parsed as number
if "%{_rent}%" is "<none>":
message "{@error}Incorrect usage: &c&l/plotmanager setrent <id> <price per day>"
stop
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::rent} to {_rent}
message "{@prefix}Set &b&l%arg-2%&7's rent to &b&l%{_rent}%"
updatePlotSigns()
else if arg-1 is "setslots":
if arg-3 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager setslots <id> <number of slots>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
set {_slots} to arg-3 parsed as number
if "%{_slots}%" is "<none>":
message "{@error}Incorrect usage: &c&l/plotmanager setslots <id> <number of slots>"
stop
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::slots} to {_slots}
message "{@prefix}Set &b&l%arg-2%&7's slots to &b&l%{_slots}%"
updatePlotSigns()
else if arg-1 is "add":
if arg-3 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager add <id> <member>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
set {_p} to arg-3 parsed as player
if {_p} is not online:
message "{@error}That player is not online"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::members::*} contains "%{_p}%":
message "{@error}That player is already a member of that plot"
stop
addMember(arg-2, "%{_p}%")
message "{@prefix}Added &b&l%{_p}%&7 to plot &b&l%arg-2%"
updatePlotSigns()
else if arg-1 is "kick":
if arg-3 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager kick <id> <member>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
set {_p} to arg-3 parsed as player
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::members::*} does not contain "%{_p}%":
message "{@error}That player is not a member of that plot"
stop
removeMember(arg-2, {_p})
message "{@prefix}Removed &b&l%{_p}%&7 from plot &b&l%arg-2%"
updatePlotSigns()
else if arg-1 is "setowner":
if arg-3 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager setowner <id> <member>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
set {_p} to arg-3 parsed as offline player
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::members::*} does not contain "%{_p}%":
message "{@error}That player is not a member of that plot"
stop
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::emoji_astonished:wner} to {_p}
message "{@prefix}Set &b&l%arg-2%&7's owner to &b&l%{_p}%"
updatePlotSigns()
else if arg-1 is "evict":
if arg-2 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager evict <id>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
if "%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::members::*}%" is "<none>":
message "{@error}This plot has no members"
stop
message "{@prefix}Evicted &b&l%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::members::*}%&7 from &b&l%arg-2%"
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires} to now
remove 5 minutes from {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires}
updatePlotSigns()
else if arg-1 is "addrent":
if arg-3 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager addrent <id> <time>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
if "%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::members::*}%" is "<none>":
message "{@error}This plot has no members"
stop
set {_t} to parseTimespan(arg-3)
if "%{_t}%" is "<none>":
message "{@error}Invalid timespan"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires} is not set:
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires} to now
set {_exp} to {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires}
add {_t} to {_exp}
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires} to {_exp}
updatePlotSigns()
message "{@prefix}Extended &b&l%arg-2%&7's rent by &b&l%{_t}%&7 it will expire on &b&l%{_exp}%"
else if arg-1 is "info":
if arg-2 is not set:
message "{@error}Incorrect usage: &c&l/plotmanager info <id>"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%} is not set:
message "{@error}No plot with this id exists"
stop
message ""
message "&bPlot &l%arg-2%"
message ""
message "&bOwner &8» &f%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::emoji_astonished:wner}%"
message "&bMembers &8[&7%size of {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::members::*}%&8/&7%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::slots}%&8]"
message "&7%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::members::*}%"
message ""
message "&bSign &8» &f%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::sign}%"
message "&bWG Region &8» &f%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::region}%"
message ""
message "&bExpires &8» &f%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires}% &8[&7%prettifyTimespan(difference between now and {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%arg-2%::expires})%&8]"
message formatted "<cmd:/plotman evict %arg-2%>&c&l[CLICK HERE TO EVICT]"
message ""
else:
message ""
message "&b/plotmanager create <id>"
message "&b/plotmanager delete <id>"
message "&b/plotmanager setwgregion <id> <region>"
message "&b/plotmanager setsign <id>"
message "&b/plotmanager setrent <id> <price per day>"
message "&b/plotmanager setslots <id> <number of slots>"
message ""
message "&b/plotmanager add <id> <member>"
message "&b/plotmanager kick <id> <member>"
message "&b/plotmanager setowner <id> <member>"
message "&b/plotmanager evict <id>"
message "&b/plotmanager addrent <id> <time>"
message ""
message "&b/plotmanager info <id>"
message ""
on place of sign:
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:layers::%player%::setplotsign} is true:
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:layers::%player%::setplotsign} to location of event-block
on right click on sign:
loop {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::*}:
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::sign} is location of event-block:
message "{@prefix}Plot id: &b&l%loop-index%"
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::emoji_astonished:wner} is player:
openPlotsMenu(loop-index, player)
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::emoji_astonished:wner} is set:
message "{@error}Someone has already rented this plot"
stop
set {_rent} to {server::items::coin}
{_rent}.setAmount({server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::rent} * 6)
if player does not have {_rent}:
message "{@error}You dont have enough coins in your inventory to rent this plot"
stop
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::slots} to 1
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::emoji_astonished:wner} to player
addMember(loop-index, "%player%")
set {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::expires} to now
add 2 day to {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%loop-index%::expires}
remove {_rent} from player
message "{@prefix}This plot is now rented by you"
function openPlotsMenu(id: text, player: player):
if name of {_player}'s current inventory is not "&a&lPlot Managment":
open chest inventory with 3 rows named "&a&lPlot Managment" to {_player}
set {server::emoji_stuck_out_tongue:lots::currentplotmenu::%{_player}%} to {_id}
set {_i} to 0
loop 27 times:
set slot {_i} of {_player}'s current inventory to gray stained glass pane named " "
add 1 to {_i}
set slot 10 of {_player}'s current inventory to paper named "&aMembers" with lore "&7Click to open the members menu"
set slot 13 of {_player}'s current inventory to paper named "&aPay Rent" with lore "&7Cost &8| &f%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_id}%::rent}%&fC" and "&7Remaining Rent &8| &f%prettifyTimespan(difference between now and {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_id}%::expires})%"
set slot 16 of {_player}'s current inventory to paper named "&aAdd Slots" with lore "&7Cost &8| &f32C" and "&7Current Slots &8| &f%{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_id}%::slots}%&8/&f14"
on inventory click:
if name of event-inventory is "&a&lPlot Managment":
cancel event
if name of event-item is "&aMembers":
set {_plot} to {server::emoji_stuck_out_tongue:lots::currentplotmenu::%player%}
open chest inventory with 4 rows named "&a&lMember Managment" to player
set {_i} to 0
loop 36 times:
set slot {_i} of player's current inventory to gray stained glass pane named " "
add 1 to {_i}
set {_i} to 10
loop 14 times:
set slot {_i} of player's current inventory to barrier named "&cYou can unlock this slot in the main menu"
add 1 to {_i}
if mod({_i}, 9) is 8:
add 2 to {_i}
set {_i} to 10
loop {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_plot}%::slots} times:
set slot {_i} of player's current inventory to player skull named "&eEmpty Member Slot" with lore "&fClick to add a player"
add 1 to {_i}
if mod({_i}, 9) is 8:
add 2 to {_i}
set {_i} to 10
loop {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_plot}%::members::*}:
set {_x} to loop-value parsed as offline player
if {_x} is {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_plot}%::emoji_astonished:wner}:
set slot {_i} of player's current inventory to skull of {_x} named "&c&l%loop-value%" with lore "&fPlot Owner"
else:
set slot {_i} of player's current inventory to skull of {_x} named "&e&l%loop-value%" with lore "&fClick to kick"
add 1 to {_i}
if mod({_i}, 9) is 8:
add 2 to {_i}
if name of event-item is "&aPay Rent":
set {_plot} to {server::emoji_stuck_out_tongue:lots::currentplotmenu::%player%}
set {_remaining} to difference between now and {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_plot}%::expires}
if {_remaining} >= 6 days:
close player's inventory
message "{@error}You have already extended this plot's expiration time to the maximum"
stop
set {_rent} to {server::items::coin}
{_rent}.setAmount{server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_plot}%::rent}
if player does not have {_rent}:
close player's inventory
message "{@error}You dont have enough coins in your inventory to extend this plot's expiration time"
stop
remove {_rent} from player
add 1 day to {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_plot}%::expires}
updatePlotSigns()
openPlotsMenu({_plot}, player)
stop
if name of event-item is "&aAdd Slots":
set {_plot} to {server::emoji_stuck_out_tongue:lots::currentplotmenu::%player%}
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_plot}%::slots} >= 14:
close player's inventory
message "{@error}This plot already has the max amount of slots"
stop
set {_rent} to {server::items::coin}
{_rent}.setAmount(32)
if player does not have {_rent}:
close player's inventory
message "{@error}You dont have enough coins in your inventory to add a slot to this plot"
stop
remove {_rent} from player
add 1 to {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{_plot}%::slots}
updatePlotSigns()
openPlotsMenu({_plot}, player)
stop
if name of event-inventory is "&a&lMember Managment":
cancel event
if uncolored name of event-item is "Empty Member Slot":
close player's inventory
message "{@prefix}Type the name of the player you wish to add in the chat"
set {server::emoji_stuck_out_tongue:lots::addingmember::%player%} to true
while {server::emoji_stuck_out_tongue:lots::addingmember::%player%} is true:
wait 1 second
set {_adding} to {server::emoji_stuck_out_tongue:lots::addingmember::%player%} parsed as player
delete {server::emoji_stuck_out_tongue:lots::addingmember::%player%}
if "%{_adding}%" is "<none>":
message "{@error}That is not a valid player"
stop
if {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{server::emoji_stuck_out_tongue:lots::currentplotmenu::%player%}%::members::*} contains "%{_adding}%":
message "{@error}That player is already a part of your plot"
stop
addMember({server::emoji_stuck_out_tongue:lots::currentplotmenu::%player%}, "%{_adding}%")
message "{@prefix}Added &b&l%{_adding}% &7to your plot"
loop {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{server::emoji_stuck_out_tongue:lots::currentplotmenu::%player%}%::members::*}:
if loop-value is not {server::emoji_stuck_out_tongue:lots::emoji_stuck_out_tongue:lots::%{server::emoji_stuck_out_tongue:lots::currentplotmenu::%player%}%::emoji_astonished:wner}:
if uncolored name of event-item is "%loop-value%":
close player's inventory
removeMember({server::emoji_stuck_out_tongue:lots::currentplotmenu::%player%}, loop-value)
message "{@prefix}Removed &b&l%loop-value% &7from your plot"
stop

on chat:
if {server::emoji_stuck_out_tongue:lots::addingmember::%player%} is true:
cancel event
set {_m} to message
set {_m} to uncolored {_m}
replace all "@" in {_m} with ""
set {server::emoji_stuck_out_tongue:lots::addingmember::%player%} to {_m}
U dont need this, just install PlotSquared V5
 
i got plot squard but it i want something using sign and set a custom payment method like diamond ore but enchating with a custom name and it have a time to end and like that
Did you try what I sent?
 
I think it's because you called the function before it recognized it?
You have updatePlotSigns() before function updatePlotSigns().
Try switching their place.
i dont have fucation how i can get it?
Did you try what I sent?
the error from skquery but when i update it it solve the old problem but now we got 5 problems
1693922091153.png
1693922109995.png
 
Last edited:
idk how to do it cuz i dont understand u ;-;
Basically, instead of:

Code:
every 1 second:
    updatePlotSigns()
function: updatePlotSigns():

do:

Code:
function: updatePlotSigns():
    [whatever code you had here]
every 1 second:
    updatePlotSigns()

You were calling the function before clarifying what it actually was.

By the way, make sure to format it.
 
Last edited:
Btw I just edited my code bc I kinda made some errors. If you used my skript up to this point it was prob wrong. I fixed it now tho.
 
i got plot squard but it i want something using sign and set a custom payment method like diamond ore but enchating with a custom name and it have a time to end and like that
You can just go in the config.yml and edit the stuff.
 
You can just go in the config.yml and edit the stuff.
But like he already has the basis and it only has one error, so like I kinda fixed it and all he has to do is test it so yk doesn't really affect that much (unless they're not finished yet or smt)
 
But like he already has the basis and it only has one error, so like I kinda fixed it and all he has to do is test it so yk doesn't really affect that much (unless they're not finished yet or smt)
Ah, sorry!
 
Basically, instead of:

Code:
every 1 second:
    updatePlotSigns()
function: updatePlotSigns():

do:

Code:
function: updatePlotSigns():
    [whatever code you had here]
every 1 second:
    updatePlotSigns()

You were calling the function before clarifying what it actually was.

By the way, make sure to format it.
the error from prettifyTimespan