Giter VIP home page Giter VIP logo

mcwiki's People

Contributors

skylerdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mcwiki's Issues

After updating MediaWiki main paragraphs are no longer shown

HI!
We absolutely love your plugin on PirateCraft, its used daily by loads of players! A week ago I updated MediaWiki to 1.31.0 as it needed an upgrade https://wiki.piratemc.com/Special:Version
You'll also notice from this page I added MobileFrontend so the Wiki can be used from mobile devices, this shouldn't effect the MediaWiki API though.

I think the easiest option would be to log into the server and test for yourself to see the differences.
This has started since I upgraded, lots of key information not being shown any more.

Server: mc.piratemc.com

Examples of pages to test in-game via the report https://piratemc.com/topic/in-game-wiki-command-doesnt-show-full-pages-anymore/#post-59622

java.io.IOException (but pages do open)

Custom wiki url: wiki.piartemc.com
Doing /wiki be to open https://wiki.piratemc.com/Be

Gives error message in chat & in console, but opens the book now! So progress!

2019-01-12_12 57 47

Console:

[13:03:33] [Server thread/INFO]: [McWiki]: error details from last command: java.io.IOException: Server returned HTTP response code: 403 for URL: https://wiki.piratemc.com/api.php?action=query&titles=be&redirects=true&format=jsonhttps://wiki.piratemc.com/api.phpbe
[13:03:33] [Server thread/INFO]: [McWiki]: error details from last command: Unexpected token END OF FILE at position 0.

/wiki command does not work on Minecraft version 1.16.5

Something seems to have changed in 1.16.5, getting an error when using the /wiki command in game.
Using paper-1.16.5-499.jar

[19:29:30 INFO]: Vampskull issued server command: /wiki stick
[19:29:31 WARN]: java.lang.IllegalAccessException: Class io.github.skylerdev.McWiki.CommandWiki can not access a member of class org.bukkit.craftbukkit.v1_16_R3.inventory.CraftMetaBook with modifiers "protected"
[19:29:31 WARN]: at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:102)
[19:29:31 WARN]: at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:296)
[19:29:31 WARN]: at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:288)
[19:29:31 WARN]: at java.lang.reflect.Field.get(Field.java:390)
[19:29:31 WARN]: at io.github.skylerdev.McWiki.CommandWiki.showBook(CommandWiki.java:317)
[19:29:31 WARN]: at io.github.skylerdev.McWiki.CommandWiki.access$400(CommandWiki.java:40)
[19:29:31 WARN]: at io.github.skylerdev.McWiki.CommandWiki$1.onQueryDone(CommandWiki.java:150)
[19:29:31 WARN]: at io.github.skylerdev.McWiki.CommandWiki$2$4.run(CommandWiki.java:259)
[19:29:31 WARN]: at net.minecraft.server.v1_16_R3.MinecraftServer.b(MinecraftServer.java:1299)
[19:29:31 WARN]: at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1214)
[19:29:31 WARN]: at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1002)
[19:29:31 WARN]: at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:175)
[19:29:31 WARN]: [McWiki] Task #5140 for McWiki v2.5.2 generated an exception
java.lang.NullPointerException: null
at io.github.skylerdev.McWiki.CommandWiki.showBook(CommandWiki.java:325) ~[?:?]
at io.github.skylerdev.McWiki.CommandWiki.access$400(CommandWiki.java:40) ~[?:?]
at io.github.skylerdev.McWiki.CommandWiki$1.onQueryDone(CommandWiki.java:150) ~[?:?]
at io.github.skylerdev.McWiki.CommandWiki$2$4.run(CommandWiki.java:259) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:99) ~[patched_1.16.5.jar:git-Paper-499]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.16.5.jar:git-Paper-499]
at net.minecraft.server.v1_16_R3.MinecraftServer.b(MinecraftServer.java:1299) ~[patched_1.16.5.jar:git-Paper-499]
at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:377) ~[patched_1.16.5.jar:git-Paper-499]
at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1214) ~[patched_1.16.5.jar:git-Paper-499]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1002) ~[patched_1.16.5.jar:git-Paper-499]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:175) ~[patched_1.16.5.jar:git-Paper-499]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]

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.