skylerdev / mcwiki Goto Github PK
View Code? Open in Web Editor NEWA plugin for Bukkit and related servers that effectively displays gamepedia pages within the game.
License: MIT License
A plugin for Bukkit and related servers that effectively displays gamepedia pages within the game.
License: MIT License
Ahoy from PirateCraft!
Got that new custom URL up and working! Existing pages seem to work! But when we created a new test page:
https://wiki.piratemc.com/Testpage
Then did /wiki Testpage, it only shows the front page and no content, any ideas?
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
just set up a https wiki website with the short_url formatting and all that..
https://mothgirlgames.com/wiki/Main_Page
here's, my link... https://mothgirlgames.com/wiki/Lift is a legit wiki article you can click on and verify its working.. but i'm unable to get mcwiki to view it from the game.
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]
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!
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.
I want to use my own wiki for that plugin but it does not work correctly for me.
I added the link to my wiki into the config.
customsite: www.welpiehd.net/wiki
The url of my wiki is https://www.welpiehd.net/wiki/index.php/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.