omegaweapondev / omegavision Goto Github PK
View Code? Open in Web Editor NEWA Modern SpigotMC plugin that allows players to toggle their nightvision status
Home Page: https://www.spigotmc.org/resources/omegavision.73013/
A Modern SpigotMC plugin that allows players to toggle their nightvision status
Home Page: https://www.spigotmc.org/resources/omegavision.73013/
Plugin doesn't seem to want to be reloaded with /nv reload
. Also, I checked my files with yaml error finder, it appears files are fine. /omegavision reload says the plugin reloaded - but doesnt apply my changes.
https://paste.helpch.at/qokejesuke.bash
For NV to reload all file configurations to apply my configuration changes.
https://paste.helpch.at/zivaherope.shell
https://paste.helpch.at/ocogesirej.makefile
No response
When you use /nightvision global add it sends 2 messages saying NightVision has been enabled for all players.
No response
When using the command it should only send 1 message
No response
No response
Set Night_Vision_Login to true in the config and don't give yourself omegavision.nightvision.login. Enable NightVision, log out and then back in, and try enabling NightVision again. The message that will display is that you're disabling NightVision, even though it is already disabled.
No response
When trying to enable NightVision, it should say NightVision has been enabled.
No response
No response
When trying to run /nightvision global add/remove through console, I am told I need to be a player to use this command. Unsure if the same issue will occur when a plugin tries to run the command, but if so, that seems like a rather important issue.
No response
It should run the command as if it is being done by a player, and not be limited to only working when physically online.
No response
No response
If you do /nv [user] on a double message will appear for said user saying their Night Vision has been turned on. If you do /nv [user] off a double message will appear saying their Night Vision has been turned off. At first I thought maybe there was a copy-paste of messages in the messages.yml file, but it doesn't seem that there is a specific message for when another player manually toggles a users Night Vision.
Currently, when doing a command via console there is no 'confirmation' message that appears like there is when using it in-game.
I suggest that when turning night vision on for everyone, toggling it for a single player etc. that it should display the appropriate messages.yml per command.
If a player does not have omegavision.nightvision.keepondeath
set to true
, but they have NightVision enabled upon death, they will be told their NightVision has been toggled off when trying to enable it upon respawn.
No response
It should enable NightVision and tell you it's been turned on.
https://mcpaste.io/c44ee62040bd3014
No response
No response
Version: Latest as of 6/14/2020
Minecraft Version: 1.15.2-R01-SNAPSHOT
Console Error:
https://pastebin.com/xQTBNDKm
31.12 03:04:51 [Server] WARN [OmegaVision] Plugin OmegaVision v2.5.10 generated an exception while executing task 385831
31.12 03:04:51 [Server] INFO java.lang.NullPointerException: Cannot invoke "java.util.Map.getOrDefault(Object, Object)" because the return value of "java.util.Map.get(Object)" is null
31.12 03:04:51 [Server] INFO at me.omegaweapondev.omegavision.utils.UserDataHandler.lambda$saveUserDataToFile$1(UserDataHandler.java:104) ~[OmegaVision-2.5.10.jar:?]
31.12 03:04:51 [Server] INFO at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.18.jar:git-Paper-66]
31.12 03:04:51 [Server] INFO at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.18.jar:git-Paper-66]
31.12 03:04:51 [Server] INFO at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.18.jar:git-Paper-66]
31.12 03:04:51 [Server] INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
31.12 03:04:51 [Server] INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
Not sure, a player disconnected and the error occured
No response
No error, I guess.
No response
No response
I suggest a config option that allows you to specify what world a player's night vision will auto-disable, possibly introduce a permission bypass as well. Or, instead of a config option, just have it auto-disable when they enter a world that the omegavision.toggle permission is not set in.
It'd be good to also introduce a messages.yml option for when nightvision is auto-disabled.
Currently, whenever /nightvision global add
or /nightvision global remove
is used, all players see the message in chat. I'd prefer this not be the case, and instead be toggleable via a permission or config option. I have tried setting the message as blank (just "") in the message.yml, however that just results in only the prefix being sent (possible bug?).
It simply just won't send the message to normal players
No response
[22:41:45 INFO]: Headle55_h0rs3mn issued server command: /nv
[22:41:45 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'nv' in plugin OmegaVision v2.4.7
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.16.5.jar:git-Purpur-1064]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:172) ~[patched_1.16.5.jar:git-Purpur-1064]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchCommand(CraftServer.java:810) ~[patched_1.16.5.jar:git-Purpur-1064]
at net.minecraft.server.v1_16_R3.PlayerConnection.handleCommand(PlayerConnection.java:2301) ~[?:git-Purpur-1064]
at net.minecraft.server.v1_16_R3.PlayerConnection.c(PlayerConnection.java:2116) ~[?:git-Purpur-1064]
at net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:2069) ~[?:git-Purpur-1064]
at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:50) ~[patched_1.16.5.jar:git-Purpur-1064]
at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:8) ~[patched_1.16.5.jar:git-Purpur-1064]
at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:55) ~[patched_1.16.5.jar:git-Purpur-1064]
at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[patched_1.16.5.jar:git-Purpur-1064]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.5.jar:git-Purpur-1064]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.5.jar:git-Purpur-1064]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.16.5.jar:git-Purpur-1064]
at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1335) ~[patched_1.16.5.jar:git-Purpur-1064]
at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1328) ~[patched_1.16.5.jar:git-Purpur-1064]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.16.5.jar:git-Purpur-1064]
at net.minecraft.server.v1_16_R3.MinecraftServer.sleepForTick(MinecraftServer.java:1304) ~[patched_1.16.5.jar:git-Purpur-1064]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1148) ~[patched_1.16.5.jar:git-Purpur-1064]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Purpur-1064]
at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.lang.NullPointerException
at me.omegaweapondev.omegavision.utils.MessageHandler.string(MessageHandler.java:22) ~[?:?]
at me.omegaweapondev.omegavision.command.ToggleCommand.toggleCommand(ToggleCommand.java:59) ~[?:?]
at me.omegaweapondev.omegavision.command.ToggleCommand.execute(ToggleCommand.java:44) ~[?:?]
at me.omegaweapondev.omegavision.library.commands.GlobalCommand.onCommand(GlobalCommand.java:17) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.16.5.jar:git-Purpur-1064]
... 19 more
When the plugin is enabled, it displays that the Current version is 2.3.6 and says the new version is 2.3.2, as seen here
A player who has permission to toggle NightVision will not keep NightVision upon death, even when they have the permission (config option set to true as well).
This is also the case for players who have the permission, but can only have NightVision if you yourself enable it for them (whether that be with /nv [player] or /nightvision global add).
omegavision.nightvision.keepondeath
Keep_Night_Vision_On_Death
to true in the configNo response
The player should keep NightVision enabled
https://mcpaste.io/c44ee62040bd3014
No response
No response
Not sure exactly.
No clue,
16.12 13:18:22 [Server] ERROR Could not pass event PlayerItemConsumeEvent to OmegaVision v2.5.7
16.12 13:18:22 [Server] INFO java.lang.NullPointerException: Cannot invoke "java.util.Map.put(Object, Object)" because the return value of "java.util.Map.get(Object)" is null
16.12 13:18:22 [Server] INFO at me.omegaweapondev.omegavision.utils.UserDataHandler.setEffectStatus(UserDataHandler.java:122) ~[OmegaVision-2.5.7.jar:?]
16.12 13:18:22 [Server] INFO at me.omegaweapondev.omegavision.events.PlayerListener.onBucketUse(PlayerListener.java:220) ~[OmegaVision-2.5.7.jar:?]
16.12 13:18:22 [Server] INFO at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor152.execute(Unknown Source) ~[?:?]
16.12 13:18:22 [Server] INFO at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[paper-api-1.18-R0.1-SNAPSHOT.jar:?]
16.12 13:18:22 [Server] INFO at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76) ~[paper-api-1.18-R0.1-SNAPSHOT.jar:git-Paper-66]
16.12 13:18:22 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.18-R0.1-SNAPSHOT.jar:?]
16.12 13:18:22 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[paper-api-1.18-R0.1-SNAPSHOT.jar:?]
16.12 13:18:22 [Server] INFO at net.minecraft.world.entity.LivingEntity.completeUsingItem(LivingEntity.java:3807) ~[?:?]
16.12 13:18:22 [Server] INFO at net.minecraft.server.level.ServerPlayer.completeUsingItem(ServerPlayer.java:1704) ~[?:?]
16.12 13:18:22 [Server] INFO at net.minecraft.world.entity.LivingEntity.updateUsingItem(LivingEntity.java:3669) ~[?:?]
16.12 13:18:22 [Server] INFO at net.minecraft.server.level.ServerPlayer.updateUsingItem(ServerPlayer.java:2282) ~[?:?]
16.12 13:18:22 [Server] INFO at net.minecraft.world.entity.LivingEntity.updatingUsingItem(LivingEntity.java:3650) ~[?:?]
16.12 13:18:22 [Server] INFO at net.minecraft.world.entity.LivingEntity.tick(LivingEntity.java:2868) ~[?:?]
16.12 13:18:22 [Server] INFO at net.minecraft.world.entity.player.Player.tick(Player.java:268) ~[?:?]
16.12 13:18:22 [Server] INFO at net.minecraft.server.level.ServerPlayer.doTick(ServerPlayer.java:669) ~[?:?]
16.12 13:18:22 [Server] INFO at net.minecraft.server.network.ServerGamePacketListenerImpl.tick(ServerGamePacketListenerImpl.java:315) ~[?:?]
16.12 13:18:22 [Server] INFO at net.minecraft.network.Connection.tick(Connection.java:526) ~[?:?]
16.12 13:18:22 [Server] INFO at net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:201) ~[?:?]
16.12 13:18:22 [Server] INFO at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1636) ~[paper-1.18.jar:git-Paper-66]
16.12 13:18:22 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:480) ~[paper-1.18.jar:git-Paper-66]
16.12 13:18:22 [Server] INFO at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1470) ~[paper-1.18.jar:git-Paper-66]
16.12 13:18:22 [Server] INFO at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1264) ~[paper-1.18.jar:git-Paper-66]
16.12 13:18:22 [Server] INFO at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.18.jar:git-Paper-66]
16.12 13:18:22 [Server] INFO at java.lang.Thread.run(Thread.java:833) ~[?:?]
No error?
No response
No response
Getting this error after joining.
I haven't edited anything within the plugin, and was only provided the jar.
https://paste.helpch.at/agafunobec.sql
I think... the expected behaviour is to not produce console errors.
https://paste.helpch.at/celoqajipa.makefile - Messages
https://paste.helpch.at/tetucuwugi.shell - Config
Both default - nothing edited.
No response
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.