Giter Site home page Giter Site logo

thecoolestpaul / tokens Goto Github PK

View Code? Open in Web Editor NEW
7.0 5.0 3.0 18.02 MB

A lightweight MineCraft rewards plugin with support for many other plugins.

Home Page: https://www.spigotmc.org/resources/tokens-multi-plugin-support-mysql-support.71941/

License: GNU General Public License v3.0

Java 100.00%
bukkit-plugin spigot-plugin papermc-plugin plugin bukkit spigot minecraft

tokens's People

Contributors

rbluer avatar thecoolerpaul avatar thecoolestpaul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

tokens's Issues

Can I use your plugin in SKRIPT?

Hi, can I use your plugin in SKRIPT?

I want to do my VIP / key system. So I need:

Token checking (The status of player's token)
Token taking
Token adding.

Thanks, DarkmayGOD.

Redeem Tokens for ranks

All the options should be contained in config.yml

Options should include:

  • Temp Ranks
  • Perm Ranks
  • Token cost per rank

EssentialsX Economy Support

Plugin name: (EssentialsX)

Change to the plugin's name

Plugin version: (LATEST)

Change to LATEST or the plugin's version

Spigot MC link: Link

Change to the plugin's link

Useful API Link

How should it work?

What should a Token do? Give a level? Enhance a stat? Add an item? Let me know here!

A drop in option like Vault!

Purchasable tokens

A way for the players to purchase tokens with in-game currency.
Of course, I'll add options in the config.

Placeholders?

I want to put the amount of tokens on my scoreboard? What are the placeholders for this plugin? like %tokens_amount%?

Tokens redeem key

add a function into plugin which could create redeem key and player can use the keys to redeem some tokens.

PlaceholderAPI not working

Version: 4.4.1

Placeholder not working, I installed the placeholder that i needed from placeholderapi and it still doesnt work. Is this a bug or is it me?

Error / Bug (3.8.2)

[21:39:44 INFO]: Gripy issued server command: /tokens
[21:39:44 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'tokens' in plugin Tokens v3.8.2
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.15.2.jar:git-Paper-112]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.15.2.jar:git-Paper-112]
at org.bukkit.craftbukkit.v1_15_R1.CraftServer.dispatchCommand(CraftServer.java:742) ~[patched_1.15.2.jar:git-Paper-112]
at net.minecraft.server.v1_15_R1.PlayerConnection.handleCommand(PlayerConnection.java:1821) ~[?:git-Paper-112]
at net.minecraft.server.v1_15_R1.PlayerConnection.a(PlayerConnection.java:1629) ~[?:git-Paper-112]
at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[patched_1.15.2.jar:git-Paper-112]
at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.15.2.jar:git-Paper-112]
at net.minecraft.server.v1_15_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:23) ~[patched_1.15.2.jar:git-Paper-112]
at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18) ~[patched_1.15.2.jar:git-Paper-112]
at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.15.2.jar:git-Paper-112]
at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.15.2.jar:git-Paper-112]
at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.15.2.jar:git-Paper-112]
at net.minecraft.server.v1_15_R1.MinecraftServer.ba(MinecraftServer.java:1038) ~[patched_1.15.2.jar:git-Paper-112]
at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:1031) ~[patched_1.15.2.jar:git-Paper-112]
at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.15.2.jar:git-Paper-112]
at net.minecraft.server.v1_15_R1.MinecraftServer.sleepForTick(MinecraftServer.java:1015) ~[patched_1.15.2.jar:git-Paper-112]
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:938) ~[patched_1.15.2.jar:git-Paper-112]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
Caused by: java.lang.NoClassDefFoundError: com/gmail/nossr50/datatypes/skills/PrimarySkillType
at net.thirdshift.tokens.messages.Message.use(Message.java:40) ~[?:?]
at net.thirdshift.tokens.messages.MessageHandler.useMessage(MessageHandler.java:25) ~[?:?]
at net.thirdshift.tokens.commands.CommandTokens.onCommand(CommandTokens.java:35) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.15.2.jar:git-Paper-112]
... 17 more
Caused by: java.lang.ClassNotFoundException: com.gmail.nossr50.datatypes.skills.PrimarySkillType
at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[?:1.8.0_212]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:171) ~[patched_1.15.2.jar:git-Paper-112]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:100) ~[patched_1.15.2.jar:git-Paper-112]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_212]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_212]
at net.thirdshift.tokens.messages.Message.use(Message.java:40) ~[?:?]
at net.thirdshift.tokens.messages.MessageHandler.useMessage(MessageHandler.java:25) ~[?:?]
at net.thirdshift.tokens.commands.CommandTokens.onCommand(CommandTokens.java:35) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.15.2.jar:git-Paper-112]
... 17 more

Can i change the token's name?

the token named "tokens" in the plugin. Can I change the name display in game?
e.g
When the command "/tokens" is executed
it can be displayed like "you have 10 coins/Coupons" or something else

API and General Documentation

My code is kinda, all over the place. I've worked on this project through many different points in my programming learning. Because of this I have different coding habits throughout the entire project. I'd like to unify it, clean it up, and document it for people to start adapting it and using it easier.

Plugin support for ShopGUI+

Plugin name: ShopGUI+

Plugin version: LATEST

Spigot MC link: Link

How should it work?
Add Token currency to be available for purchasing items in this plugin's shops.

Redeem Command

Hi, Paul.

I Cannot find a way to translate the tokens your plugin adds into MCMMO stats. I have used /redeem and worked out how to place in keys, though once I have created a Token balance I'm lost from there. The wiki also feels very niche and doesn't describe how to use the commands very well.

Plugin version: Most Recent.

Steps to reproduce the behavior:

  1. I use command /Redeem Key TestKey123
  2. I receive 10 tokens.
  3. I cannot find any command to further explore this plugin.

Add BossShopPro Support

Add support for BossShopPro so you can use tokens as points on a store or gui's that needs tokens.

ShopGUI+ does not work

Describe the bug

Economy type MYSQL_TOKENS does not work in the latest version (1.61.1+) of the ShopGUI+ plugin
It does not work approximately since version 1.56.0.

Plugin version: 4.3.2

Error message

[11:05:06 WARN]: [ShopGUIPlus] Failed to register MYSQL_TOKENS economy.
[11:05:06 WARN]: net.brcdev.shopgui.exception.economy.EconomyProviderLoadException: Error occurred when loading economy provider
[11:05:06 WARN]: at net.brcdev.shopgui.economy.EconomyManager.loadEconomyProvider(EconomyManager.java:151)
[11:05:06 WARN]: at net.brcdev.shopgui.economy.EconomyManager.registerDefaultProviders(EconomyManager.java:64)
[11:05:06 WARN]: at net.brcdev.shopgui.economy.EconomyManager.setup(EconomyManager.java:50)
[11:05:06 WARN]: at net.brcdev.shopgui.ShopGuiPlugin.loadAfterServerLoaded(ShopGuiPlugin.java:206)
[11:05:06 WARN]: at net.brcdev.shopgui.task.LoadShopsTask.run(LoadShopsTask.java:26)
[11:05:06 WARN]: at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:81)
[11:05:06 WARN]: at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:400)
[11:05:06 WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1252)
[11:05:06 WARN]: at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:436)
[11:05:06 WARN]: at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1200)
[11:05:06 WARN]: at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1027)
[11:05:06 WARN]: at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:307)
[11:05:06 WARN]: at java.base/java.lang.Thread.run(Thread.java:831)
[11:05:06 WARN]: [ShopGUIPlus] No supported economy plugins found, disabling the plugin.
[11:05:06 INFO]: [ShopGUIPlus] Disabling ShopGUIPlus v1.61.1

Tokens going in negative numbers

Describe the bug

Im using a plugin called "CommandPanels" basically a GUI maker, same thing as ChestCommand but better.
The thing is im making a shop using Tokens, and when removing the tokens from the player with /tokes remove the tokens are going to the infitinte in negative numbers, wich is letting the players buy unlimited things still not having tokens to do so.

Plugin version: 4.3.4

To Reproduce
Set your self on 0 tokens
Go to the console and remove your self some tokens.

Error message
No errors or warns on the console

Expected behavior
Tokens should have a minimun amount like 0, or an option to configure this. Like essentialsx have.

Screenshots
imagen

Additional context
Server: PaperSpigot 1.17.1
Java 16
Windows 10 - 21H1

WildStacker Support

Adding the support for Wildstacker, because when you start a server with wildstacker it crash Token

Add a option in config that can disable Auto-Update checks

Plugin name: (Plugin's Name)

Change to the plugin's name

Plugin version: (Version number OR LATEST)

Change to LATEST or the plugin's version

Spigot MC link: Link

Change to the plugin's link

How should it work?

What should a Token do? Give a level? Enhance a stat? Add an item? Let me know here!

[Request] TokenManager Migration

Plugin name: TokenManager

Plugin version: latest

Spigot MC link: Spigot also GitHub

How should it work?

Hello! I'm new to Tokens, migrating from the abandoned TokenManager. Currently I use TM's flatfile storage system but will be using Token's MySQL storage to combine tokens across 3 servers and am looking for a way to import the old data. I was originally going to try a basic script for it, but my methods fail if the player hasn't been online since we added Tokens. Do you have any suggestions or is there an easy way to implement a migration into Tokens? Obviously we would only need to migrate players who have a balance greater than zero. I've included TM's data file here:

https://gist.github.com/mercurialmusic/c405aa65ad213c00c7cb08b9ba96719f

Thanks for the consideration!

Setting a Player's Tokens Gives Console Error

Whenever I set a player's Tokens through the console, it works, but I get an error. trying to set a player's tokens using the in-game chat commands does nothing and gives no error.

Plugin version: Latest

MC Version: Spigot 1.16.2

Error message

>tokens set Madog24 0
[16:13:06] [Server thread/INFO]: You set 0 Tokens to Madog24
[16:13:06] [Server thread/WARN]: Unexpected exception while parsing console command "tokens set Madog24 0"
org.bukkit.command.CommandException: Unhandled exception executing command 'tokens' in plugin Tokens v3.9.7
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-0d8350a]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-0d8350a]
        at org.bukkit.craftbukkit.v1_16_R2.CraftServer.dispatchCommand(CraftServer.java:756) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-0d8350a]
        at org.bukkit.craftbukkit.v1_16_R2.CraftServer.dispatchServerCommand(CraftServer.java:741) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-0d8350a]
        at net.minecraft.server.v1_16_R2.DedicatedServer.handleCommandQueue(DedicatedServer.java:384) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-0d8350a]
        at net.minecraft.server.v1_16_R2.DedicatedServer.b(DedicatedServer.java:353) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-0d8350a]
        at net.minecraft.server.v1_16_R2.MinecraftServer.a(MinecraftServer.java:1007) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-0d8350a]
        at net.minecraft.server.v1_16_R2.MinecraftServer.w(MinecraftServer.java:846) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-0d8350a]
        at net.minecraft.server.v1_16_R2.MinecraftServer.lambda$0(MinecraftServer.java:164) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-0d8350a]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_271]
Caused by: java.lang.NullPointerException
        at net.thirdshift.tokens.messages.MessageHandler.useMessage(MessageHandler.java:25) ~[?:?]
        at net.thirdshift.tokens.commands.tokens.CommandTokens.onCommand(CommandTokens.java:161) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[spigot-1.16.2.jar:git-Spigot-b5a13e6-0d8350a]
        ... 9 more
[16:13:31] [Server thread/INFO]: [Tokens] No newer version available.

Can be?

Hello,
I can edit /tokens for example for /rubin? Or How?

Cannot start server - Startup error

Describe the bug

Cannot start server on latest paper version.

Plugin version: 3.9.6 - Latest release

To Reproduce
Steps to reproduce the behavior:

Start a server with Tokens and PaperSpigot 1.16.1 u will see an startup error

Error message

If you have an error message copy and paste it on this site, save it, then link us to it.
https://hasteb.in/aranejuv.sql

Expected behavior

A clean startup, first time using this plugin.

Screenshots

If applicable, add screenshots to help explain your problem.
image

MYSQL ERROR on Paper 1.16.4

Describe the bug

After some time, the connection to MySQL will stop working. The plugin shows errors in the console. After /tokens reload the plugin and the connection works again.

Plugin version: 3.9.7

To Reproduce
Can't say. It happens at least once a day, randomly. Nothing leads to this error, it happens by itself.

Error message

[https://hastebin.com/pijuwuqaha.sql]

Add Suport for plugin RankUp

Plugin name: (RankUp)

Spigot MC link: Link

Hello!
I would like to be able to add to the requirements of each rankUp, an x ​​number of tokens to move to the next rank!

3.8.0 does not work properly on paper 1.15.2!

It enable successfully,but when i use command like "/tokens",it says that have an internal error and my console spamming this:

org.bukkit.command.CommandException: Unhandled exception executing command 'tokens' in plugin Tokens v3.8.0
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.15.2.jar:git-Paper-105]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.15.2.jar:git-Paper-105]
at org.bukkit.craftbukkit.v1_15_R1.CraftServer.dispatchCommand(CraftServer.java:742) ~[patched_1.15.2.jar:git-Paper-105]
at net.minecraft.server.v1_15_R1.PlayerConnection.handleCommand(PlayerConnection.java:1821) ~[patched_1.15.2.jar:git-Paper-105]
at net.minecraft.server.v1_15_R1.PlayerConnection.a(PlayerConnection.java:1629) ~[patched_1.15.2.jar:git-Paper-105]
at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[patched_1.15.2.jar:git-Paper-105]
at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.15.2.jar:git-Paper-105]
at net.minecraft.server.v1_15_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:23) ~[patched_1.15.2.jar:git-Paper-105]
at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18) ~[patched_1.15.2.jar:git-Paper-105]
at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.15.2.jar:git-Paper-105]
at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.15.2.jar:git-Paper-105]
at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.15.2.jar:git-Paper-105]
at net.minecraft.server.v1_15_R1.MinecraftServer.ba(MinecraftServer.java:1038) ~[patched_1.15.2.jar:git-Paper-105]
at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:1031) ~[patched_1.15.2.jar:git-Paper-105]
at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeAll(IAsyncTaskHandler.java:95) ~[patched_1.15.2.jar:git-Paper-105]
at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1172) ~[patched_1.15.2.jar:git-Paper-105]
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:934) ~[patched_1.15.2.jar:git-Paper-105]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
Caused by: java.lang.NoClassDefFoundError: com/massivecraft/factions/FPlayer
at net.thirdshift.tokens.messages.Message.use(Message.java:52) ~[?:?]
at net.thirdshift.tokens.messages.MessageHandler.useMessage(MessageHandler.java:25) ~[?:?]
at net.thirdshift.tokens.commands.CommandTokens.onCommand(CommandTokens.java:35) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.15.2.jar:git-Paper-105]
... 17 more

Confusing output /redeem

Describe the bug

First time using the plugin, I wanted to test the redeem command. When running /redeem it gives Command usage: /redeem < key >. As a server administrator, you'll immediately think for typing /redeem TestKey123 or another key. After a couple of minutes I discovered /redeem key outputs Command usage: /redeem key < key >
Suggestion: When running /redeem outputs immediately Command usage: /redeem key < key > OR use /redeem <key> without key arg.

Plugin version: Tokens-3.9.7
To Reproduce
Run the commands:
/redeem
/redeem key

Token Kiosks

Create a NPC or button, something that you can activate to open a menu to sell tokens for in-game items or whatever the user of the plugin wants, sort of like an atm. Probably only useful once the tokens are physical items.

[Question]only Levels-To-Token?

in the config I only see the "Levels-To-Token" belong to mcmmo,which mean use mcmmo level to redeem the tokens?
I dont know what the meaning is. So i changed the setting number from 1 to 3 but when i use token to redeem the mcmmo level , finding that one token only redeem one mcmmo level and i couldnt find any way to use mcmmo level to redeem token.
Hope developer could add a funtion to let tokens to redeem custom level ,thx :)
sorry for my bad english.

Add Support to Custom Heads

Do I need to?

Do I need to install a hook for the placeholders?

any plan to update?

the latest version works fine on 1.15.1
but I really hope developer to continue this good project
:)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.