Skip to content

CKAY-9/CxTokens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plugin Version: 1.0.2
Minecraft Version: 1.19+

CxTokens is a token (money) system for Spigot/Paper Minecraft servers.

How to Install

  1. Download the latest release of CxTokens
  2. Move the .jar file into your servers /plugins folder
  3. Reload/restart your server
  4. Edit the config and store files in /plugins/CxTokens
  5. Reload/restart your server to update config

Features

  • Lottery event
  • Auction House
  • Bounties
  • Item Store
  • Commands
  • Local data storing (no need for a database)
  • HTTP updates
  • Highly configurable

Commands

  • cxtokens/tabout: Information about CxTokens
  • tadmin: Admin commands/tools for CxTokens (e.g. add/subtract tokens)
  • tbounty: Place a bounty on a player
  • tbal: Get the balance of yourself or someone else
  • tstore: Open the static token store
  • tauction: Open the live auction house
  • ttop: See who has the most tokens
  • tsend: Send tokens to a player
  • treset: Reset your token profile
  • tlottery: Join the token lottery if its happening

HTTP Updates

Note: by default this is off.

This allows you to POST request the CxTokens data to your webserver.

{
    player_data: [
        {
            uuid: string,
            name: string,
            tokens: long (number),
            bounty: long (number)
        }, 
        ...
    ],
    store_data: [
        {
            itemName: string,
            material: string,
            price: long (number),
            stack: integer (number),
            sellMultiplier: double (number)
        },
        ...
    ],
    auction_data: [
        {
            sellerName: string,
            sellerUUID: string,
            biddername: string,
            bidderUUID: string,
            currentBid: long (number),
            itemName: string,
            itemMaterial: string,
            itemCount: integer (number),
            sold: boolean,
            sweepsRemaining: long (number)
        },
        ...
    ]
}

Additionally, the authorization header is sent with whatever is provided in the config file. This is to make sure you are processing valid requests from verified sources:

Headers {
    Authorization: YOUR_AUTH_KEY
}

Example website using CxTokens HTTP data