问题一
这个插件如何使用,怎么屏蔽下面报错(经常出现但不影响)
[综合|优化]Console Spam Fix —— 让控制台变得干净[1.7-1.16]
https://www.mcbbs.net/thread-912870-1-1.html
(出处: Minecraft(我的世界)中文论坛)
- [03:31:33 WARN] [FaithlPoint]: Task #2267 for FaithlPoint v1.5.0 generated an exception
- java.lang.IllegalAccessError: Attribute plugin hook failed: ${cause.localizedMessage}
- at com.faithl.milim.api.impl.AttributeException.setAttribute(AttributeException.java:32) ~[?:?]
- at com.faithl.milim.MilimAPI.setAttribute(MilimAPI.java:39) ~[?:?]
- at com.faithl.faithlpoint.api.FaithlPointAPI$updateAttribute$1.invoke(FaithlPointAPI.kt:49) ~[?:?]
- at com.faithl.faithlpoint.api.FaithlPointAPI$updateAttribute$1.invoke(FaithlPointAPI.kt:37) ~[?:?]
- at com.faithl.faithlpoint.taboolib.platform.BukkitExecutor$submit$7.run(BukkitExecutor.kt:98) ~[?:?]
- at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:82) ~[arclight-1.18.2-1.0.3-SNAPSHOT-c11f9ced.jar%2368!/:arclight-1.18.2-1.0.3-SNAPSHOT-c11f9ced]
- at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftSchedulerMixin.java:415) ~[arclight-1.18.2-1.0.3-SNAPSHOT-c11f9ced.jar%2368!/:arclight-1.18.2-1.0.3-SNAPSHOT-c11f9ced]
- at net.minecraft.server.MinecraftServer.handler$zfj000$arclight$runScheduler(MinecraftServerMixin.java:2381) ~[server-1.18.2-20220404.173914-srg.jar%23118!/:?]
- at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServerMixin.java) ~[server-1.18.2-20220404.173914-srg.jar%23118!/:?]
- at net.minecraft.server.dedicated.DedicatedServer.m_5703_(DedicatedServerMixin.java:326) ~[server-1.18.2-20220404.173914-srg.jar%23118!/:?]
- at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServerMixin.java:842) ~[server-1.18.2-20220404.173914-srg.jar%23118!/:?]
- at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServerMixin.java:2135) ~[server-1.18.2-20220404.173914-srg.jar%23118!/:?]
- at net.minecraft.server.MinecraftServer.m_177918_(MinecraftServerMixin.java:261) ~[server-1.18.2-20220404.173914-srg.jar%23118!/:?]
- at java.lang.Thread.run(Thread.java:833) [?:?]
复制代码- [03:31:29 ERROR] [Minecraft]: Could not pass event PlayerJoinEvent to NoCollisions v1.4
- org.bukkit.event.EventException: null
- at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[arclight-1.18.2-1.0.3-SNAPSHOT-c11f9ced.jar%2368!/:arclight-1.18.2-1.0.3-SNAPSHOT-c11f9ced]
- at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:589) ~[arclight-1.18.2-1.0.3-SNAPSHOT-c11f9ced.jar%2368!/:arclight-1.18.2-1.0.3-SNAPSHOT-c11f9ced]
- at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:576) ~[arclight-1.18.2-1.0.3-SNAPSHOT-c11f9ced.jar%2368!/:arclight-1.18.2-1.0.3-SNAPSHOT-c11f9ced]
- at net.minecraft.server.players.PlayerList.eject$zgl000$arclight$playerJoin(PlayerListMixin.java:1051) ~[server-1.18.2-20220404.173914-srg.jar%23118!/:?]
- at net.minecraft.server.players.PlayerList.m_11261_(PlayerListMixin.java:181) ~[server-1.18.2-20220404.173914-srg.jar%23118!/:?]
- at net.minecraft.server.network.ServerLoginPacketListenerImpl.m_10055_(ServerLoginNetHandlerMixin.java:622) ~[server-1.18.2-20220404.173914-srg.jar%23118!/:?]
- at net.minecraft.server.network.ServerLoginPacketListenerImpl.m_10050_(ServerLoginNetHandlerMixin.java:69) ~[server-1.18.2-20220404.173914-srg.jar%23118!/:?]
- at net.minecraft.network.Connection.m_129483_(ConnectionMixin.java:241) ~[server-1.18.2-20220404.173914-srg.jar%23118!/:?]
- at net.minecraft.server.network.ServerConnectionListener.m_9721_(ServerConnectionListener.java:142) ~[server-1.18.2-20220404.173914-srg.jar%23118!/:?]
- at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServerMixin.java:916) ~[server-1.18.2-20220404.173914-srg.jar%23118!/:?]
- at net.minecraft.server.dedicated.DedicatedServer.m_5703_(DedicatedServerMixin.java:326) ~[server-1.18.2-20220404.173914-srg.jar%23118!/:?]
- at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServerMixin.java:842) ~[server-1.18.2-20220404.173914-srg.jar%23118!/:?]
- at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServerMixin.java:2135) ~[server-1.18.2-20220404.173914-srg.jar%23118!/:?]
- at net.minecraft.server.MinecraftServer.m_177918_(MinecraftServerMixin.java:261) ~[server-1.18.2-20220404.173914-srg.jar%23118!/:?]
- at java.lang.Thread.run(Thread.java:833) [?:?]
- Caused by: java.lang.ExceptionInInitializerError
- at it.fusionworld.nocollisions.packets.PacketInjector.attach(PacketInjector.java:38) ~[?:?]
- at it.fusionworld.nocollisions.packets.PacketInjector.<init>(PacketInjector.java:30) ~[?:?]
- at it.fusionworld.nocollisions.packets.PacketManager.addListener(PacketManager.java:40) ~[?:?]
- at it.fusionworld.nocollisions.listeners.PlayerListener.onPlayerLogin(PlayerListener.java:31) ~[?:?]
- ... 15 more
- Caused by: java.lang.NullPointerException
- at java.util.Objects.requireNonNull(Objects.java:208) ~[?:?]
- at it.fusionworld.nocollisions.packets.PacketSender.<clinit>(PacketSender.java:49) ~[?:?]
- at it.fusionworld.nocollisions.packets.PacketInjector.attach(PacketInjector.java:38) ~[?:?]
- at it.fusionworld.nocollisions.packets.PacketInjector.<init>(PacketInjector.java:30) ~[?:?]
- at it.fusionworld.nocollisions.packets.PacketManager.addListener(PacketManager.java:40) ~[?:?]
- at it.fusionworld.nocollisions.listeners.PlayerListener.onPlayerLogin(PlayerListener.java:31) ~[?:?]
复制代码- [03:31:28 ERROR] [STDERR]: java.lang.NoSuchFieldException: playerConnection at class net.minecraft.server.level.ServerPlayer
- [03:31:28 ERROR] [STDERR]: at ink.ptms.fenestra.taboolib.common.reflect.Reflex.get(Reflex.kt:60)
- [03:31:28 ERROR] [STDERR]: at ink.ptms.fenestra.taboolib.common.reflect.Reflex.read(Reflex.kt:25)
- [03:31:28 ERROR] [STDERR]: at ink.ptms.fenestra.taboolib.common.reflect.Reflex$Companion.getProperty(Reflex.kt:128)
- [03:31:28 ERROR] [STDERR]: at ink.ptms.fenestra.taboolib.common.reflect.Reflex$Companion.getProperty$default(Reflex.kt:124)
- [03:31:28 ERROR] [STDERR]: at ink.ptms.fenestra.taboolib.module.nms.ChannelExecutor.getPlayerChannel(ChannelExecutor.kt:29)
- [03:31:28 ERROR] [STDERR]: at ink.ptms.fenestra.taboolib.module.nms.ChannelExecutor.addPlayerChannel$lambda-0(ChannelExecutor.kt:36)
- [03:31:28 ERROR] [STDERR]: at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
- [03:31:28 ERROR] [STDERR]: at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
- [03:31:28 ERROR] [STDERR]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
- [03:31:28 ERROR] [STDERR]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
- [03:31:28 ERROR] [STDERR]: at java.base/java.lang.Thread.run(Thread.java:833)
复制代码
|
问题二
如何修改武器伤害?版本1.18.2
问题三
关于如何做一个指定世界指定地方刷指定的怪,任务系统通过检测杀指定的怪完成任务,如何实现?
问题一
在配置文件中找到
Messages-To-Hide-Filter:
- ''
将Task #2267 for FaithlPoint v1.5.0 generated an exception此条信息加入即可
成品
Messages-To-Hide-Filter:
- 'Task #2267 for FaithlPoint v1.5.0 generated an exception'
问题二和三我记得MM怪物都可以做到原帖地址已经支持1.18
https://www.spigotmc.org/resourc ... ator%E2%97%84.5702/
第一个问题
这个插件是屏蔽某些重复的字段,按照文章里说的配置文件的注释调就可以了
问题二:可以通过安装rpg的插件修改,这样更简单,或者通过修改nbt标签,不过比前者麻烦。
此乃配置我 依次似非有用
- # default config.yml for ConsoleSpamFix
- # config version 1.9.0
- #Add here the messages you want to hide from your console and logs.
- #Each line represents a new message.
- #NOTE! You dont need to add the full message!
- #The plugin will hide all messages that contain the text added below.
- # EXAMPLE:
- #
- # Messages-To-Hide-Filter:
- # - 'WARNING: unlocalizedName'
- #
- # All messages that will appear in the server console that contain these words 'WARNING: unlocalizedName' will be hidden and they will not appear on logs or console.
- # If you have large errors you dont have to type the full error. But the more words you add the more accurate will be and will not hide other messages that may contain the words added in the filter.
- Messages-To-Hide-Filter:
- - '[STDERR]: java.lang.NoSuchFieldException: playerConnection at class net.minecraft.server.level.ServerPlayer'
- - 'Second example message'
- #Chat messages with color and format codes support.
- #Minecraft Color and Format Codes: http://minecraft.gamepedia.com/Formatting_codes
- ChatMessages:
- NoPermission: '&4[System] &cYou don''t have permission!'
- CmdHelp: '&4[System] &cAvailable commands:&6 /csf reload'
- CmdReload: '&2[System] &aConfig reload complete!'
复制代码
本帖最后由 承峰解说 于 2022-5-3 09:16 编辑
我们腐竹用的比较多的就是rpgitem吧,再加上mm的怪物插件这样。