Code Monkey home page Code Monkey logo

Comments (5)

NaruseII avatar NaruseII commented on August 24, 2024

When you add stats value manually (with a spleef cmd, probably /spleef setStats), does it work ? Check if the database is filled after executing this command. It it does not, check your console logs to see if DBAPI is connected and Spleef recognized DBAPI.
If everything seems good, send me your console logs. :)

from spleef.

SoRadGaming avatar SoRadGaming commented on August 24, 2024

Running /spleef setstats player win 1 does increment the stats page and the hologram, this is what the console reports on loading the spleef plugin:
[01:10:35 INFO]: [Spleef] DBAPI found
[01:10:35 INFO]: [Spleef] Vault found
[01:10:35 INFO]: [DB API] Registering database 'Spleef'(B
[01:10:35 INFO]: [Spleef] HolographicDisplays found
[01:10:35 WARN]: [Spleef] Loaded class me.clip.placeholderapi.expansion.PlaceholderExpansion from PlaceholderAPI v2.10.9 which is not a depend, softdepend or loadbefore of this plugin.
[01:10:35 INFO]: [Spleef] PlaceholderAPI found
[01:10:35 INFO]: [Spleef] Loading the data of all the players... (This may take a few seconds)
[01:10:35 INFO]: [PlaceholderAPI] Successfully registered expansion: spleef
[01:10:35 INFO]: [Spleef] Data loaded in 6 ms
[01:10:35 INFO]: [Spleef] 1 spleefs found

from spleef.

SoRadGaming avatar SoRadGaming commented on August 24, 2024

Error found on loading DBAPI:
[DBAPI] Loading DBAPI v1.2.4 [01:09:38 INFO]: [DB API] Loading DatabaseAPI... [01:09:39 WARN]: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure [01:09:39 WARN]: The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. [01:09:39 WARN]: [01:09:39 WARN]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [01:09:39 WARN]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [01:09:39 WARN]: at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) [01:09:39 WARN]: at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [01:09:39 WARN]: at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:990) [01:09:39 WARN]: at com.mysql.jdbc.Util.handleNewInstance(Util.java:403) [01:09:39 WARN]: at com.mysql.jdbc.MysqlIO.(MysqlIO.java:335) [01:09:39 WARN]: at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2187) [01:09:39 WARN]: at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2220) [01:09:39 WARN]: at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2015) [01:09:39 WARN]: at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:768) [01:09:39 WARN]: at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47) [01:09:39 WARN]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [01:09:39 WARN]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [01:09:39 WARN]: at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [01:09:39 WARN]: at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) [01:09:39 WARN]: at com.mysql.jdbc.Util.handleNewInstance(Util.java:403) [01:09:39 WARN]: at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:323) [01:09:39 WARN]: at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:385) [01:09:39 WARN]: at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228) [01:09:39 WARN]: at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677) [01:09:39 WARN]: at fr.naruse.dbapi.sql.SQLConnection.connection(SQLConnection.java:42) [01:09:39 WARN]: at fr.naruse.dbapi.sql.SQLConnection.connection(SQLConnection.java:48) [01:09:39 WARN]: at fr.naruse.dbapi.main.DBAPICore.onLoad(DBAPICore.java:36) [01:09:39 WARN]: at fr.naruse.dbapi.main.bukkit.DBAPIBukkitPlugin.onLoad(DBAPIBukkitPlugin.java:29) [01:09:39 WARN]: at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServer.java:394) [01:09:39 WARN]: at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:206) [01:09:39 WARN]: at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:935) [01:09:39 WARN]: at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:173) [01:09:39 WARN]: at java.base/java.lang.Thread.run(Thread.java:834) [01:09:39 WARN]: Caused by: java.net.ConnectException: Connection refused (Connection refused) [01:09:39 WARN]: at java.base/java.net.PlainSocketImpl.socketConnect(Native Method) [01:09:39 WARN]: at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) [01:09:39 WARN]: at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) [01:09:39 WARN]: at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) [01:09:39 WARN]: at java.base/java.net.Socket.connect(Socket.java:609) [01:09:39 WARN]: at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) [01:09:39 WARN]: at com.mysql.jdbc.MysqlIO.(MysqlIO.java:299)(B [01:09:39 WARN]: at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:211) [01:09:39 WARN]: ... 23 more

from spleef.

SoRadGaming avatar SoRadGaming commented on August 24, 2024

Restart the server to get that error and the one win I awarded is gone from the database, seems like a DBAPI issue. Its not saving the wins or losses, and it's not incrementing.

from spleef.

NaruseII avatar NaruseII commented on August 24, 2024

It is an issue with identifiers, make sure they are the good ones
It the problem still appears, please come on discord. I'll respond 100x faster than git

from spleef.

Related Issues (20)

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.