r-josef / bbstoper Goto Github PK
View Code? Open in Web Editor NEWBukkit插件BBStoper----奖励玩家顶服务器宣传帖
Home Page: https://www.mcbbs.net/thread-789082-1-1.html
License: Other
Bukkit插件BBStoper----奖励玩家顶服务器宣传帖
Home Page: https://www.mcbbs.net/thread-789082-1-1.html
License: Other
如题,bbs改了服务器面板后,尽管我填了正确的服务器地址,但是依旧显示地址错误
本人服务器链接:https://www.mcbbs.net/thread-1124469-1-1.html
本人MCBBS个人资料页:https://www.mcbbs.net/home.php?mod=space&uid=1781182
使用了BBSToper 3.6.5 最新版本
如图,服务器内已经正确绑定了我的MCBBS
配置文件内已经正确配置本服ID
我也已经顶帖
但是插件就是检测不到我顶帖
后台没有任何报错,只有YUM的网络检测。但是没有对BBSToper进行拦截。
测试服务端:Loliserver-1.16.5
使用主指令/bt时的输出:
[15:50:53][WARN/]: [BBSToper] Plugin BBSToper v3.6.2 generated an exception while executing task 153
java.lang.NoSuchFieldError: STAINED_GLASS_PANE
at moe.feo.bbstoper.gui.GUI.getRandomPane(GUI.java:144) ~[?:?]
at moe.feo.bbstoper.gui.GUI.createGui(GUI.java:54) ~[?:?]
at moe.feo.bbstoper.gui.GUI.(GUI.java:36) ~[?:?]
at moe.feo.bbstoper.CLI$1.task(CLI.java:96) ~[?:?]
at moe.feo.bbstoper.CLI$1.run(CLI.java:88) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:81) ~[forge:?]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) [forge:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
或许自定义GUI可以拯救一下?
核心:Paper-788
刚启动就报错
[21:33:09 ERROR]: Could not load 'plugins/BBSToper-3.6.7.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:188) ~[patched_1.16.5.jar:git-Paper-788]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:160) ~[patched_1.16.5.jar:git-Paper-788]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServer.java:393) ~[patched_1.16.5.jar:git-Paper-788]
at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:269) ~[patched_1.16.5.jar:git-Paper-788]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1069) ~[patched_1.16.5.jar:git-Paper-788]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Paper-788]
at java.lang.Thread.run(Thread.java:853) [?:1.8.0_302]
Caused by: org.yaml.snakeyaml.error.YAMLException: java.util.zip.ZipException: invalid LOC header (bad signature)
at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:218) ~[patched_1.16.5.jar:git-Paper-788]
at org.yaml.snakeyaml.reader.StreamReader.ensureEnoughData(StreamReader.java:176) ~[patched_1.16.5.jar:git-Paper-788]
at org.yaml.snakeyaml.reader.StreamReader.ensureEnoughData(StreamReader.java:171) ~[patched_1.16.5.jar:git-Paper-788]
at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:126) ~[patched_1.16.5.jar:git-Paper-788]
at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:1177) ~[patched_1.16.5.jar:git-Paper-788]
at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:287) ~[patched_1.16.5.jar:git-Paper-788]
at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:227) ~[patched_1.16.5.jar:git-Paper-788]
at org.yaml.snakeyaml.parser.ParserImpl$ParseImplicitDocumentStart.produce(ParserImpl.java:195) ~[patched_1.16.5.jar:git-Paper-788]
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) ~[patched_1.16.5.jar:git-Paper-788]
at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148) ~[patched_1.16.5.jar:git-Paper-788]
at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:118) ~[patched_1.16.5.jar:git-Paper-788]
at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:150) ~[patched_1.16.5.jar:git-Paper-788]
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:490) ~[patched_1.16.5.jar:git-Paper-788]
at org.yaml.snakeyaml.Yaml.load(Yaml.java:429) ~[patched_1.16.5.jar:git-Paper-788]
at org.bukkit.plugin.PluginDescriptionFile.(PluginDescriptionFile.java:259) ~[patched_1.16.5.jar:git-Paper-788]
at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:183) ~[patched_1.16.5.jar:git-Paper-788]
... 6 more
1.请问能否设置顶帖奖励间隔,比如一个玩家顶帖后,另外一个玩家必须要在1小时后顶帖,才算做有效顶帖
2.请问能否设置顶帖时间限制,比如只有在早上8点到晚上10点的顶帖才有效
先感谢老铁写了这样一个好东西出来。
同为公益服管理员给你点赞!
服务端版本 paperspigot 1.15.2 build 215 (因兼容问题等没有更新到最新版本)
BBSToper插件版本 3.6 从mcbbs直接下载
插件列表如有需要请再跟我联系
问题发生时间在2020年6月8日早上八九点左右
玩家在绑定、顶帖后发现顶帖奖励每隔几秒钟就发一次
明显不正常(玩家只顶帖一次)
伴随插件报错
https://paste.ubuntu.com/p/C7XY6w6ytK/
每次刚开服的时候插件工作一切正常,但是过了一段时间之后(大概1小时)后台就会不断提示
“[BBSToper] 获取网页时错误, 可能是由于网络波动!”
之后就无法再检测到玩家的顶贴行为。
[19:56:21] [Craft Scheduler Thread - 207/WARN]: java.sql.SQLException: database connection closed
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at org.sqlite.SQLiteConnection.checkOpen(SQLiteConnection.java:390)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at org.sqlite.jdbc4.JDBC4Connection.prepareStatement(JDBC4Connection.java:32)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at org.sqlite.jdbc3.JDBC3Connection.prepareStatement(JDBC3Connection.java:241)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at org.sqlite.jdbc3.JDBC3Connection.prepareStatement(JDBC3Connection.java:205)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at mc233.fun.kbbstoper.sql.SQLer.checkTopstate(SQLer.java:164)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at mc233.fun.kbbstoper.Crawler.activeReward(Crawler.java:111)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at mc233.fun.kbbstoper.Util$1.task(Util.java:44)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at mc233.fun.kbbstoper.Util$1.run(Util.java:36)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:81)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:
54)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at java.lang.Thread.run(Thread.java:855)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: java.sql.SQLException: database connection closed
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at org.sqlite.SQLiteConnection.checkOpen(SQLiteConnection.java:390)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at org.sqlite.jdbc4.JDBC4Connection.prepareStatement(JDBC4Connection.java:32)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at org.sqlite.jdbc3.JDBC3Connection.prepareStatement(JDBC3Connection.java:241)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at org.sqlite.jdbc3.JDBC3Connection.prepareStatement(JDBC3Connection.java:205)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at mc233.fun.kbbstoper.sql.SQLer.checkTopstate(SQLer.java:164)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at mc233.fun.kbbstoper.Crawler.activeReward(Crawler.java:111)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at mc233.fun.kbbstoper.Util$1.task(Util.java:44)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at mc233.fun.kbbstoper.Util$1.run(Util.java:36)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:81)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:
54)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[19:56:21] [Craft Scheduler Thread - 207/WARN]: at java.lang.Thread.run(Thread.java:855)
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: java.text.ParseException: Unparseable date: ""
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: at java.text.DateFormat.parse(DateFormat.java:366)
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: at mc233.fun.kbbstoper.Reward.award(Reward.java:122)
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: at mc233.fun.kbbstoper.Crawler.activeReward(Crawler.java:134)
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: at mc233.fun.kbbstoper.Util$1.task(Util.java:44)
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: at mc233.fun.kbbstoper.Util$1.run(Util.java:36)
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:64)
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52)
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: java.text.ParseException: Unparseable date: ""
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: at java.text.DateFormat.parse(DateFormat.java:366)
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: at mc233.fun.kbbstoper.Reward.isIntervalTooShort(Reward.java:91)
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: at mc233.fun.kbbstoper.Reward.award(Reward.java:128)
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: at mc233.fun.kbbstoper.Crawler.activeReward(Crawler.java:134)
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: at mc233.fun.kbbstoper.Util$1.task(Util.java:44)
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: at mc233.fun.kbbstoper.Util$1.run(Util.java:36)
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:64)
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52)
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[01:55:34] [Craft Scheduler Thread - 22988/WARN]: [KBBSToper] Plugin KBBSToper v3.7.1 generated an exception while executing task 105
java.lang.NullPointerException: null
at mc233.fun.kbbstoper.Reward.isIntervalTooShort(Reward.java:96) ~[?:?]
at mc233.fun.kbbstoper.Reward.award(Reward.java:128) ~[?:?]
at mc233.fun.kbbstoper.Crawler.activeReward(Crawler.java:134) ~[?:?]
at mc233.fun.kbbstoper.Util$1.task(Util.java:44) ~[?:?]
at mc233.fun.kbbstoper.Util$1.run(Util.java:36) ~[?:?]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:64) ~[%5b2%5dPpaer-1.12.2.jar:git-Paper-1620]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) ~[%5b2%5dPpaer-1.12.2.jar:git-Paper-1620]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[%5b2%5dPpaer-1.12.2.jar:git-Paper-1620]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_282]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_282]
at java.lang.Thread.run(Thread.java:823) [?:1.8.0_282]
我最近在开始优化BBSToper的代码(见此),也注意到了插件很久没有新代码提交了,不知道我重制完成后能否就用我的仓库以 BBSToper 4.0 的名义发布出去?直接提交到这个仓库的话我怕会出一些问题。
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.