Git Product home page Git Product logo

bookrulesold's Issues

NoSuchMethodError on PaperMC 1.18.2

Opening the rulebook on current PaperMC (1.18.2) will produce the following exception:

org.bukkit.command.CommandException: Unhandled exception executing command 'rulebook' in plugin BookRules v2.3.3
    ...
Caused by: java.lang.NoSuchMethodError: 'net.kyori.adventure.text.minimessage.MiniMessage net.kyori.adventure.text.minimessage.MiniMessage.get()'
    at de.skyslycer.bookrules.core.BookManager.open(BookManager.java:145) ~[bookrules-2.3.3.jar:?]
    ...

This is probably due to an API change of MiniMessage. The get() method does not exist for MiniMessage and so does the parse() method. I'd suggest replacing (BookManager.java#L144)

for (String page : bookContent) {
    Component component = MiniMessage.get().parse(page);
    customBookContent.add(BungeeComponentSerializer.get().serialize(component));
}

with:

for (String page : bookContent) {
    Component component = MiniMessage.miniMessage().deserialize(page);
    customBookContent.add(BungeeComponentSerializer.get().serialize(component));
}

Maybe there are also other places which require changes. The current adventure Javadoc can be found here.

Could be related to this: https://forums.papermc.io/threads/paper-1-18-2.185/

java.sql.SQLException: ResultSet.TYPE_FORWARD_ONLY

This plugin spams the following error in our log:

[02:06:42] [ForkJoinPool.commonPool-worker-3/WARN]: java.sql.SQLException: Operation not allowed for a result set of type ResultSet.TYPE_FORWARD_ONLY. [02:06:42] [ForkJoinPool.commonPool-worker-3/WARN]: at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) [02:06:42] [ForkJoinPool.commonPool-worker-3/WARN]: at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) [02:06:42] [ForkJoinPool.commonPool-worker-3/WARN]: at com.mysql.cj.jdbc.result.ResultSetImpl.first(ResultSetImpl.java:609) [02:06:42] [ForkJoinPool.commonPool-worker-3/WARN]: at bookrules 2.3.3.jar//de.skyslycer.bookrules.api.RulesAPI.lambda$playerHasAcceptedRules$0(RulesAPI.java:28) [02:06:42] [ForkJoinPool.commonPool-worker-3/WARN]: at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) [02:06:42] [ForkJoinPool.commonPool-worker-3/WARN]: at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) [02:06:42] [ForkJoinPool.commonPool-worker-3/WARN]: at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) [02:06:42] [ForkJoinPool.commonPool-worker-3/WARN]: at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) [02:06:42] [ForkJoinPool.commonPool-worker-3/WARN]: at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) [02:06:42] [ForkJoinPool.commonPool-worker-3/WARN]: at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) [02:06:42] [ForkJoinPool.commonPool-worker-3/WARN]: at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)

Can you please fix this?

Need Quick help

Hello,

im using a Combined Plugin list of EssentialsX, LuckPerms, PL-Hide-Pro and BookRules.

Is it Possible to promote an user who accept the rules from Guest(Who has no permissions on the Server) to an other Group Added with LuckPerms?

I Need this Information ASAP

Thanks Greets

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.