#Is there a way to limit the amount you can spawn in with /i?

21 messages · Page 1 of 1 (latest)

icy frost
#

I was wondering if there was a chat regex plugin that I could use or if there was a way to do this through RocketMod.

modern river
honest horizon
#

Without a plugin, you cannot limit how many items / what items you cannot spawn in

icy frost
honest horizon
#

Don't think there is any. You would need to commission one

icy frost
#

👍

#

I'll just write one, it's a simple regex

honest horizon
#

Not to sure how regex will help in your situation but ok

icy frost
#

it's a chat message/command

#

You just look for /i <word> <number over 100> and then block it

#

unless I can pull the 2nd argument specifically, i'd have to check

#

then I could just look for /i and then check if the 2nd argument is >100

honest horizon
#

command[1] would pull the second argument

valid mulch
#

Hey @icy frost, Do you want to limit how many items a player can spawn with /i at once?

#

/i <item> "Limit this: <amount>"?

icy frost
valid mulch
#

There is indeed a way to do this without any plugins.

icy frost
#

Oh cool, how so?

valid mulch
#

Open the File Manager where your server is located and follow this path: Servers > "YourServer" > Rocket > Rocket.Unturned.config.xml.

<EnableItemSpawnLimit>true</EnableItemSpawnLimit>
<MaxSpawnAmount>20</MaxSpawnAmount>
icy frost
#

Thank you so much! 😄