Economy & shop

Tip4Serv store (premium)

Sell kits, VIP, items and more on your Tip4Serv store - Warden delivers them in game. Buyers sign in to your store with Discord, and Warden delivers to the gamertag they've linked in your Discord - nobody types a gamertag. A gift goes to the friend whose Discord ID the buyer enters.

This page walks through everything from connecting your store to your first test purchase. If something isn't arriving the way you expect, jump to When something goes wrong.

What you need

  • Premium on the Discord the game server is in.
  • A Tip4Serv store you own. Approving Warden needs the store's owner - a store admin can't do it.
  • Your game server added to Warden (Connect your server) and online.

Connecting

  1. On Tip4Serv, open My Servers and add a server with Warden as its connection. Give it your game server's name.
  2. In Discord: /store connect server: and press Connect with Tip4Serv. Log in to Tip4Serv and approve Warden. Warden never sees your Tip4Serv password, and you can take its access back on Tip4Serv at any time.
  3. Back in Discord, the same message asks which of your store's servers this is - pick it. Warden checks it can read its purchases before saving.
  4. Pick a staff channel for the store log: /feed set feed:Store purchases.

Got more than one game server? Run /store connect for each one and pick its Tip4Serv server - you only log in once.

Prefer a server key? /store connect use_key:True asks for the key from My Servers instead (it looks like 12345.xxxxx.yyyyy). Warden checks it with Tip4Serv before saving it, and keeps it encrypted.

Warden checks your store every minute.

Setting up a product

In the Tip4Serv product editor, the General options decide whether a product can be bought and how quantities work:

OptionWhat to pick
EnableOn - while it's off, the product isn't for sale.
FeaturedYour choice - it only changes where the product shows in your store.
Allow quantity choiceOn if buyers can pick how many (3 kits, 5 bags of scrap). Off sells one at a time.
Repeat commands by quantityOff if your commands use {quantity} - see Selling more than one. On only for a command that gives one, run once for each one bought.

Then add the product to the Tip4Serv server you connected to Warden, and give it its commands (next section). For each command, pick when it runs:

  • Execute if player is online - for items and kits, which need the player in game. Warden holds them until the player is on, then delivers them - nothing is lost.
  • Execute - for VIP and money: they arrive straight away, online or not.

Your products' commands

Give each product the console commands that deliver it, with the buyer as {PlayerName}:

To giveCommand
An iteminventory.giveto "{PlayerName}" rifle.ak 1
A kitkit givetoplayer elite "{PlayerName}"
VIP for 30 dayswarden.vip "{PlayerName}" 30d (12h, 30d, or lifetime)
Money for the economywarden.money "{PlayerName}" 5000
One random reward from a loot crate ("spin the wheel")warden.crate "{PlayerName}" "Lucky spin"
300 HQM for each one boughtinventory.giveto "{PlayerName}" "metal.refined" {quantity*300}
A locked crate beside themspawn "codelockedhackablecrate" ({PlayerPositionX}+3,{PlayerPositionY}+1,{PlayerPositionZ})
Anything elseany console command, with {PlayerName} where the gamertag goes
  • {rust_username} and {gamertag} work too, and {discord_id} if the buyer logged in with Discord.
  • {PlayerPositionX}, {PlayerPositionY} and {PlayerPositionZ} are where the buyer stands. Add or take metres right after one - +3, -2 - so things land beside them, not inside them. A command that uses them always waits until the buyer is in game.
  • Item names are the game's own short names (rifle.ak, metal.refined, wood). A name the game doesn't know is refused - the store log and your admin alerts say so.
  • A product can have several commands - an item and some money, say. They all run for the same buyer.
  • warden.vip uses Warden's VIP timer: it's taken back by itself when the time is up. For subscriptions, Tip4Serv's renewal and expiry commands work the same way.
  • warden.crate opens the crate once for the buyer, free, and announces what they won. /crate sell gives you the command and the crate's public odds page - see selling a crate.

Selling more than one

With Allow quantity choice on, a buyer can take several of a product at once. There are two ways to deliver that - use one, never both:

WayRepeat commands by quantityThe command3 bought gives
Warden counts (recommended)Offinventory.giveto "{PlayerName}" "metal.refined" {quantity*10}30 HQM, in one go
Tip4Serv repeatsOninventory.giveto "{PlayerName}" "metal.refined" 1010 HQM, three times
  • {quantity} is how many they bought, and {quantity*10} that times a number - any number you like.
  • With several different products in one basket, each command gets its own product's quantity. If Tip4Serv ever doesn't say which product a command belongs to, Warden doesn't guess - it doesn't run that command, and tells your admin alerts.
Careful Don't use {quantity} with Repeat commands by quantity on. Tip4Serv runs the command once for each one bought, and each run already gives the full amount - 3 bought with {quantity*10} gives 3 × 30 = 90, not 30. Check this switch on every product that uses {quantity}.

Who gets it

Tip4Serv tells Warden the Discord account a purchase is for, and Warden delivers to the gamertag linked to it in your Discord:

  • Buying for themselves - the Discord they signed in to your store with.
  • A gift - the Discord ID the buyer enters for their friend. It goes to the friend's linked gamertag, never to the buyer's, and the friend claims it if claim mode is on.

A Discord that isn't linked in your Discord is held: nothing runs, and it stays waiting. It's delivered by itself as soon as they /link in your Discord - the buyer, or the friend for a gift. If it's still unknown after 2 hours, your admin alerts say so - send it to the right player with:

/store fix order: gamertag:
Tip Tell your players to link in your Discord before they buy, and to check their friend has linked before buying a gift. Then every purchase arrives straight away.

Claim mode (optional)

By default a purchase arrives as soon as it can. Turn on claim mode and it waits until the buyer asks for it - so items don't land mid-fight or in a full inventory:

/store claim phrase: discord:

You choose how buyers claim - one way or both:

  • In game, with a quick chat phrase (phrase:). Console players can't type, so it's a phrase you pick - say "Can I have a key?" - sent from any quick chat channel.
  • In Discord, with /claim (discord:True). The buyer has to be linked and in game on that server when they run it - like a product set to "Execute if player is online". Not in game yet? /claim tells them to join first.

When they claim, everything they've bought on that server runs at once. They're told how to claim when they buy (by DM, if they're linked). /store claim with neither turns claim mode off.

  • Claim mode counts from when you turn it on. Purchases that were already on their way before then are delivered as normal, so there's nothing to claim for them.
  • Renewals wait for the claim too. A subscription expiring or a chargeback (taking things back) never waits.
  • Pick a phrase nothing else uses - not one of your emote kits.

Testing your store

Before you sell for real, buy something yourself:

  1. Make a test product that's free (price 0), with a command that's easy to spot - inventory.giveto "{PlayerName}" "wood" {quantity*100}. Turn Enable on, and Repeat commands by quantity off.
  2. Sign in to your store with Discord (with your gamertag linked) and buy 3.
  3. Join the game server. You should get 300 wood, a line in the store log, and a DM from Warden.
  4. Using claim mode? Turn it on first, buy again, and check it waits until you claim.
  5. Turn the test product's Enable off, so nobody else gets it for free.

Keeping an eye on it

CommandWhat it does
/store statusConnected and delivering? When it last checked, what's waiting or held
/store ordersPurchases waiting for their player, and held ones
/store fix order: gamertag:Send a held purchase to the right player
/store claim phrase: discord:Claim mode: purchases wait for a quick chat phrase in game and/or /claim in Discord (leave both out to turn it off)
/claimPlayers: get what's waiting for your claim (be in game first)
/store pause / resumeStop and start delivering - purchases wait on Tip4Serv meanwhile
/store disconnectStop delivering for this server (and forget its key, if it used one)
  • The store log posts every delivery, every purchase waiting for its player, and anything held.
  • Admin alerts also tell you when something needs you: a held purchase, a command the game keeps refusing, a placeholder Warden can't fill, or a key Tip4Serv stops accepting.
  • A command is never run twice - even if Warden restarts mid-delivery.
  • Linked buyers get a DM when their purchase arrives (/notify store:False turns it off).

When something goes wrong

What happenedWhy, and what to do
A buyer got double or triple the amountRepeat commands by quantity is on for a product whose command uses {quantity}. Turn it off - see Selling more than one.
The product isn't in the storeIts Enable is off, or it isn't on the Tip4Serv server you connected.
Nothing arrived yetCommands set to Execute if player is online wait until the buyer is in game. With claim mode on, they wait for the claim. /store orders shows what's waiting and why.
A purchase is heldIts Discord isn't linked in your Discord yet - the buyer's, or the friend's for a gift. It goes through by itself once they /link; otherwise /store fix order: gamertag:.
/claim says nothing is waitingIt was already delivered (bought before claim mode was on), it's for a server they aren't in game on, or it's held - check /store orders.
A command keeps failingThe game refused it - usually a wrong item or kit name. The store log shows the game's answer. Fix the command on Tip4Serv - new purchases use the fixed one - and make up the failed purchase yourself.
A command didn't run, "placeholder" in the alertIt uses something Warden can't fill - a misspelt {PlayerName}, or {quantity} in a mixed basket where Tip4Serv didn't say which product it's for.
Nothing is delivering at all/store status - paused, the game server offline, or Tip4Serv access taken back. Paused purchases wait on Tip4Serv and arrive once you /store resume.

Stuck? Ask in the Warden RCE support Discord.