For support, please join the discord I'd love to take suggestions, but I don't check Spigot that often
Overview
A simple tokens system for minecraft. Allows players with the proper permission to add or remove tokens from another player. Stores token amounts in the plugin while the server is running and auto saves to a file every couple of minutes. Also has a log of when and who gets tokens if there are any concerns about token balances.
PlaceholderAPI
Not Tokens has a
PlaceholderAPI extension:
%nottokens_amount% & %nottokens_top_[x]%
Config
In the config, you can change the language as needed. (the messages your players see) Newer versions of the plugin (1.2<) allow you to reward the player tokens for killing mobs in
kill-rewards. With this new feature, the token messages can be quite spammy when killing many mobs, so there is a condense-spam option. Set to the desired minimum message interval.
Code (YAML):
# settings
# MySQL connection - you don't have to change anything if you don't want to use it # must restart your server for MySQL changes to take effect database:
host: localhost
port: 3306
database: db
user: username
password: pass
use-ssl: false
# automatically move data stored locally to the MySQL database when one connects migrate-local-data: true
# automatically try to connect to the database if a connection was lost auto-connect: false
# condense the tokens notifications to one message per given seconds # time in seconds (-1 to disable) condense-spam: 30
# allow players to have negative tokens negative-tokens: false
# a list of players that are excluded from /tokens top # not case-sensitive leaderboard-exclusion: - Not_Jaden
# Language prefix: '&7
[&b&lNot&d&lTokens&7
] &8➟ &r'
balance: '&aYou have
{tokens
} tokens.'
admin-add: '&aYou have given
{player
}{tokens
} tokens.'
player-receive: '&aYou have received
{tokens
} tokens.'
admin-remove: '&aYou have removed
{tokens
} tokens from
{player
}.'
player-take: '&a
{tokens
} tokens have been removed from your account.'
admin-set: '&a
{player
} now has
{tokens
} tokens.'
player-set: '&aYour tokens were set to
{tokens
}.'
unknown-command: '&cUnknown Command! /token help'
unknown-player: '&cUnknown Player!'
reduced-message: '&aYour tokens have changed by
{tokens
} in the last
{time
} seconds.'
other-tokens: '&a
{player
} has
{tokens
} tokens.'
admin-give-all: '&aYou have given
{amount
} players
{tokens
} tokens.'
insufficient-tokens: '&cYou do not have enough tokens for this transaction!'
/tokens - displays your token balance /tokens help - displays commands /tokens reload - reloads config /tokens (player) - displays a player's token balance /tokens give (player) (amount) - gives a player tokens /tokens giveall (amount) (online/offline) - Gives all offline or online players tokens /tokens remove (player) (amount) - removes a player's tokens /tokens set (player) (amount)- sets a player's tokens /tokens top - shows the top 10 players with the highest tokens [Aliases: token, nottokens, ntokens]
Permissions
nottokens.admin - ability to use all of the commands nottokens.top - ability to use /tokens top command All players have the permission to use the /tokens command to view their balance
Use code NOT20 at XGamingServer to receive 20% off