Jump to content

I have another question about commands.

Pending 2.4.25

maxalt
  • in Shop
maxalt

Posted

Is it possible to execute more than one command when a command is run?

Or is it limited to executing only a single command?

  • Curator
Mevent

Posted

Hey yeah you can totally do that. In the item editor just put multiple commands in the Command field and separate them with | like: "give %steamid% scrap 100|oxy teleport %steamid% 0 0 0". The plugin splits by | and runs each one.

  • Like 1
maxalt

Posted

Thank you!

Would it be okay if I asked two more questions?

1. Cooldown reset

Let's say a player with the shop.default permission purchases an item that has a 30-minute cooldown. As expected, they can't purchase it again until the cooldown expires.

Is there any way to allow that player to purchase it again immediately?

Right now, the only workaround I've found is to unload the Shop plugin, remove that player's cooldown entry from oxide/data/Shop/Player.json, and then load the Shop plugin again. This works, but while the plugin is unloaded, nobody can access the Shop.

Is there a better way to achieve this?

2. The "ID" field

{
"Shop Categories": [
{
"Enabled": true,
"ID": 1822931874,
"Category Type": "None",
"Title": "Special",
"Permission": "",
"Sort Type": "None",
"Items": [
{
"Type": "Item",
"ID": 5000,
"Image": "",
"Permission": ""

Regarding the ID field, am I correct in understanding that:

For Type: "Item", this should be the Rust Item ID.

For other types such as Command, is it okay to leave the ID field empty ("")?

I just wanted to make sure I'm using it correctly.

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.7m
Total downloads
Customers
11.5k
Customers served
Files Sold
164k
Total sales
Payments
3.5m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.