Code Monkey home page Code Monkey logo

playerpoints's Introduction

PlayerPoints

Allows for players to have points in an economy-like way.

playerpoints's People

Contributors

akarras avatar blackixx avatar mitsugaru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

playerpoints's Issues

Fail Code source

Into File org.black_ixx.playerpoints.storage.exports.SQLiteExport

at ligne 43

query = sqlite.query("SELECT * FROM playerpoints");

is not
query = sqlite.query(String.format("SELECT * FROM %s", config.table));

??

Feature request

Is it possible to keep a running tally of how many points a user has earned even if they have spent some of them?

So a user can earn a rank if they have earned 500 points even if they have spent 400 of them?

Change prefix

How do change the Prefix in the game instead of it saying PlayerPoints? I looked through the files and found no option to do this. You can change the messages but not the prefix.

Bungee Support

Is there any way you guys could add bungee support as I really want to set up a network points system. For example is a play buys a pet in lobby for 500 points that gets deducted through out the network. Then if they try to buy a pick in prison for 550 points that can't.

2 problems with PlayerPoints!

  1. commands /p lead throw errors, please fix it
  2. by default, when player first join to server, PlayerPoint dont write "player information" in to database, so it's make difficulty to update points from website. Current, i make a trick with Skript that, when player first join server, console run commands "/p give player 0", this trick make PlayerPoint write PlayerInformation in to database.
    Please make an option to write player information in to database when player join server.
    //sorry for my english not good!

Can not use MySQL

image

Why?

storage: MySQL
mysql:
host: localhost
port: 3306
database: playerpoints
user: root
password: *******
table: playerpoints
import:
use: false
source: YAML
export:
use: false
source: SQLITE
retry: 10
vote:
enabled: false
amount: 100
online: false
restrictions:
autocompleteOnline: false
hasPlayedBefore: false
debug:
database: false
uuid: false
vault: false
version: 2.1.4

Feature request: /points giveall

I would like to suggest you add a command to give the specified amount of points to all online players.

Command could look like: /points giveall 5

Lead points Header config.

There is no way to change the localization for the Lead Points command results.
Color scheme is not fully configurable throughout the plugin resulting in a messy looking plugin if you change the defaults.

Update to 1.12.2 and up to 1.13

Please can someone update and support this cool plugin? its sooooo old Dead Abandoned R.I.P
no active developer at all shame i like to be active this resource. :(

i get this error NULL

31.01 18:54:47 [Server] ERROR null
31.01 18:54:47 [Server] INFO org.bukkit.command.CommandException: Cannot execute command 'souls' in plugin PlayerPoints v2.1.5-SNAPSHOT - plugin is disabled.
31.01 18:54:47 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:36) ~[patched_1.13.2.jar:git-Paper-488]
31.01 18:54:47 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) ~[patched_1.13.2.jar:git-Paper-488]
31.01 18:54:47 [Server] INFO at org.bukkit.craftbukkit.v1_13_R2.CraftServer.dispatchCommand(CraftServer.java:732) ~[patched_1.13.2.jar:git-Paper-488]
31.01 18:54:47 [Server] INFO at net.minecraft.server.v1_13_R2.PlayerConnection.handleCommand(PlayerConnection.java:1792) ~[patched_1.13.2.jar:git-Paper-488]
31.01 18:54:47 [Server] INFO at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1595) ~[patched_1.13.2.jar:git-Paper-488]
31.01 18:54:47 [Server] INFO at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[patched_1.13.2.jar:git-Paper-488]
31.01 18:54:47 [Server] INFO at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.13.2.jar:git-Paper-488]
31.01 18:54:47 [Server] INFO at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:12) ~[patched_1.13.2.jar:git-Paper-488]
31.01 18:54:47 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_171]
31.01 18:54:47 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_171]
31.01 18:54:47 [Server] INFO at net.minecraft.server.v1_13_R2.SystemUtils.a(SystemUtils.java:109) ~[patched_1.13.2.jar:git-Paper-488]
31.01 18:54:47 [Server] INFO at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:1016) ~[patched_1.13.2.jar:git-Paper-488]
31.01 18:54:47 [Server] INFO at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:439) ~[patched_1.13.2.jar:git-Paper-488]
31.01 18:54:47 [Server] INFO at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:943) ~[patched_1.13.2.jar:git-Paper-488]
31.01 18:54:47 [Server] INFO at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:841) ~[patched_1.13.2.jar:git-Paper-488]

Optional Vault support

Will add a configuration option that users can change to make PlayerPoints work with Vault.

MySQL connect error

java.lang.NoClassDefFoundError: lib/PatPeter/SQLibrary/MySQL
at org.black_ixx.playerpoints.storage.models.MySQLStorage.connect(MySQLStorage.java:276) ~[?:?]
at org.black_ixx.playerpoints.storage.models.MySQLStorage.(MySQLStorage.java:61) ~[?:?]
at org.black_ixx.playerpoints.storage.StorageGenerator.createStorageHandlerForType(StorageGenerator.java:47) ~[?:?]
at org.black_ixx.playerpoints.storage.StorageHandler.starting(StorageHandler.java:65) ~[?:?]
at org.black_ixx.playerpoints.PlayerPoints.registerModule(PlayerPoints.java:139) ~[?:?]
at org.black_ixx.playerpoints.PlayerPoints.onEnable(PlayerPoints.java:64) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:292) ~[spigot-latest.jar:git-Spigot-e6f93f4-935f18b]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot-latest.jar:git-Spigot-e6f93f4-935f18b]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot-latest.jar:git-Spigot-e6f93f4-935f18b]
at org.bukkit.craftbukkit.v1_9_R1.CraftServer.loadPlugin(CraftServer.java:361) [spigot-latest.jar:git-Spigot-e6f93f4-935f18b]
at org.bukkit.craftbukkit.v1_9_R1.CraftServer.enablePlugins(CraftServer.java:321) [spigot-latest.jar:git-Spigot-e6f93f4-935f18b]
at net.minecraft.server.v1_9_R1.MinecraftServer.t(MinecraftServer.java:411) [spigot-latest.jar:git-Spigot-e6f93f4-935f18b]
at net.minecraft.server.v1_9_R1.MinecraftServer.l(MinecraftServer.java:376) [spigot-latest.jar:git-Spigot-e6f93f4-935f18b]
at net.minecraft.server.v1_9_R1.MinecraftServer.a(MinecraftServer.java:331) [spigot-latest.jar:git-Spigot-e6f93f4-935f18b]
at net.minecraft.server.v1_9_R1.DedicatedServer.init(DedicatedServer.java:269) [spigot-latest.jar:git-Spigot-e6f93f4-935f18b]
at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:527) [spigot-latest.jar:git-Spigot-e6f93f4-935f18b]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
Caused by: java.lang.ClassNotFoundException: lib.PatPeter.SQLibrary.MySQL
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_45]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot-latest.jar:git-Spigot-e6f93f4-935f18b]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-latest.jar:git-Spigot-e6f93f4-935f18b]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_45]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_45]
... 17 more

SQL Expression Error of GET_PLAYERS

source code
protected String GET_PLAYERS = "SELECT %s FROM playerpoints;";
it should be
protected String GET_PLAYERS = "SELECT playername FROM %s;";

PLAYER POINTS GIVING 60000 - 90000 POINTS RANDOMLY

I use mysql as backend with utf8 collage general_ci
i set up my vote listener to execute command

points give 1

everytime they vote so they get 1 point
but once the server gets crowded and started voting they get 60000 - 90000 points
at first i thought it was GA Listener that was the problem so i bought a premium vote listener
and the problem is still the same

i think there is a problem with player points or the sqllibrary

Command to save the storage to disk

There should be a command to save the player points storage to disk. This is relevant especially for the YAML backend, but also for the sqlite backend.

Aditionally, it would be nice to be able to configure an auto-backup interval to run in the background.

I plan to submit a PR implementing these features.

Feature: Custom DB

Idea: Select the table and columns that you want to use in the SQL.

For example:

mysql:
host: localhost
port: 3306
database: Points
table: Players #New option
id_column: user_id #New option
player_column: username #New option
points_column: points #New option
user: root
password: XXXX
import:
use: false
source: YAML

Greetings!

Please update release

I want to import your code in my project using Maven.

But your Maven repository cannot be used in my area because it is often inaccessible for network reasons.

So I have to use other mirrors to import your project, for example jitpack.io

jitpack.io Shows that the last release build of your project failed, but the most recent commit build was successful.

So I hope you can update the release on GitHub so that I can use it jitpack.io It's time to import your project.

I'm sorry if this will cause you any trouble.

BUG!

[08:47:58] [Server thread/INFO]: [PlayerPoints] Enabling PlayerPoints v2.1.4
[08:47:58] [Server thread/ERROR]: Error occurred while enabling PlayerPoints v2.1.4 (Is it up to date?)
java.lang.NoClassDefFoundError: lib/PatPeter/SQLibrary/SQLite
at org.black_ixx.playerpoints.storage.models.SQLiteStorage.(SQLiteStorage.java:35) ~[?:?]
at org.black_ixx.playerpoints.storage.StorageGenerator.createStorageHandlerForType(StorageGenerator.java:44) ~[?:?]
at org.black_ixx.playerpoints.storage.StorageHandler.starting(StorageHandler.java:65) ~[?:?]
at org.black_ixx.playerpoints.PlayerPoints.registerModule(PlayerPoints.java:139) ~[?:?]
at org.black_ixx.playerpoints.PlayerPoints.onEnable(PlayerPoints.java:64) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[Spigot.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:335) [Spigot.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [Spigot.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:356) [Spigot.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:316) [Spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.q(MinecraftServer.java:402) [Spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.k(MinecraftServer.java:370) [Spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.a(MinecraftServer.java:325) [Spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:211) [Spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505) [Spigot.jar:git-Spigot-c3c767f-33d5de3]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
Caused by: java.lang.ClassNotFoundException: lib.PatPeter.SQLibrary.SQLite
at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[?:1.8.0_191]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[Spigot.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[Spigot.jar:git-Spigot-c3c767f-33d5de3]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_191]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_191]
... 16 more

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.