NotTokens icon

NotTokens -----

Placeholder and MySQL Tokens system



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!'

# Placeholder: %nottokens_amount%

# how many tokens are rewarded for killing a mob and the rate the will drop
kill-rewards
:
  enabled
: false
  all-mobs
:
    enabled
: false
    amount
: 1
    rate
: 0.1
  # manually adding mobs overrides all-mobs rate and amount
  1
:
    name
: zombie
    amount
: 1
    rate
: 0.1
  2
:
    name
: skeleton
    amount
: 1
    rate
: 0.1
  3
:
    name
: spider
    amount
: 1
    rate
: 0.1
  4
:
    name
: witch
    amount
: 3
    rate
: 0.1
  5
:
    name
: creeper
    amount
: 1
    rate
: 0.1
  6
:
    name
: wither
    amount
: 500
    rate
: 0.1
  7
:
    name
: ender_dragon
    amount
: 500
    rate
: 0.1
  8
:
    name
: elder_guardian
    amount
: 500
    rate
: 0.1
  9
:
    name
: iron_golem
    amount
: 5
    rate
: 0.1
  10
:
    name
: wither_skeleton
    amount
: 2
    rate
: 0.1
  11
:
    name
: cave_spider
    amount
: 1
    rate
: 0.1
  12
:
    name
: drowned
    amount
: 2
    rate
: 0.1
  13
:
    name
: blaze
    amount
: 1
    rate
: 0.1
  14
:
    name
: zombified_piglin
    amount
: 1
    rate
: 0.1


Commands
/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
[​IMG]
Resource Information
Author:
----------
Total Downloads: 1,311
First Release: Sep 3, 2021
Last Update: Apr 27, 2024
Category: ---------------
All-Time Rating:
2 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings