Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Emre-Cebeci/ServerTrade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

ServerTrade

A TShock plugin that let's players trade items with the server.

Permission and Command

Add servertrade.trade permission for players to use /trade <item name>

Configuration

When plugin runs for the first time it'll create a file named "ServerTradeConfig.json". You need to add items in this file.

Under the shopList dictionary you need to add items like:

"ItemName": [itemID, itemAmount, RequirementItemID, AmountofRequirementItem]

Note: ItemName should not any include whitespaces. Plus, if requirement item is not stackable and requirement amount is greater than 1, then players won't be able to trade that item due to how plugin checks items in the inventory.

Example config file:

{
  "shopList": {
      "TheDirtiestBlock": [5400, 1, 2, 2000],
      "Fish": [669, 1, 2290, 50],
      "LuckyHorseshoe": [158, 1, 159, 1]
  }
}

About

A TShock plugin that let's players trade items with the server.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages