zEssentials icon indicating copy to clipboard operation
zEssentials copied to clipboard

[Bug] /seen command

Open MrLouisDew opened this issue 11 months ago • 0 comments

Terms

  • [x] I'm using the very latest version of zEssentials and its dependencies (zMenu and PlaceholdersAPI).
  • [x] I am sure this is a bug and it is not caused by a misconfiguration or by another plugin.
  • [x] I've looked for already existing issues on the Issue Tracker and haven't found any.
  • [x] I already searched on the plugin wiki to know if a solution is already known.
  • [x] I already searched on the discord to check if anyone already has a solution for this.
  • [x] I tested this with just zEssentials and its dependencies and with a vanilla client of the same version as the Server.
  • [x] I enabled the debug mode in config.yml and sql debug

Discord Username (optional)

uekc

Server Version

1.21.1

Server Software

Current Purpur Version: 1.21.1-2329-803bf62

zEssentials Version

zEssentials version 1.0.1.7

zMenu Version

zMenu version 1.0.3.7

What happened?

The /seen command does not work on offline players.

Steps to reproduce the issue

  1. Use the /seen command on an offline player.
  2. See that command is not working.

Full Server Log

https://mclo.gs/Bk5VaLZ

Error (optional)

[13:49:27 WARN]: java.lang.NullPointerException: date must not be null
[13:49:27 WARN]:        at java.base/java.util.Objects.requireNonNull(Objects.java:259)
[13:49:27 WARN]:        at java.base/java.util.Calendar.setTime(Calendar.java:1801)
[13:49:27 WARN]:        at java.base/java.text.SimpleDateFormat.format(SimpleDateFormat.java:978)
[13:49:27 WARN]:        at java.base/java.text.SimpleDateFormat.format(SimpleDateFormat.java:971)
[13:49:27 WARN]:        at java.base/java.text.DateFormat.format(DateFormat.java:378)
[13:49:27 WARN]:        at zEssentials-1.0.1.7 (5).jar//fr.maxlego08.essentials.module.modules.SanctionModule.sendOffline(SanctionModule.java:396)
[13:49:27 WARN]:        at zEssentials-1.0.1.7 (5).jar//fr.maxlego08.essentials.module.modules.SanctionModule.seen(SanctionModule.java:376)
[13:49:27 WARN]:        at zEssentials-1.0.1.7 (5).jar//fr.maxlego08.essentials.commands.commands.sanction.CommandSeen.lambda$perform$0(CommandSeen.java:27)
[13:49:27 WARN]:        at zEssentials-1.0.1.7 (5).jar//fr.maxlego08.essentials.zutils.utils.commands.VCommand.lambda$fetchUniqueId$8(VCommand.java:546)
[13:49:27 WARN]:        at zEssentials-1.0.1.7 (5).jar//fr.maxlego08.essentials.storage.storages.SqlStorage.fetchUniqueId(SqlStorage.java:332)
[13:49:27 WARN]:        at zEssentials-1.0.1.7 (5).jar//fr.maxlego08.essentials.zutils.utils.commands.VCommand.fetchUniqueId(VCommand.java:539)
[13:49:27 WARN]:        at zEssentials-1.0.1.7 (5).jar//fr.maxlego08.essentials.commands.commands.sanction.CommandSeen.perform(CommandSeen.java:27)
[13:49:27 WARN]:        at zEssentials-1.0.1.7 (5).jar//fr.maxlego08.essentials.zutils.utils.commands.VCommand.safelyPerformCommand(VCommand.java:460)
[13:49:27 WARN]:        at zEssentials-1.0.1.7 (5).jar//fr.maxlego08.essentials.zutils.utils.commands.VCommand.prePerform(VCommand.java:396)
[13:49:27 WARN]:        at zEssentials-1.0.1.7 (5).jar//fr.maxlego08.essentials.commands.ZCommandManager.processRequirements(ZCommandManager.java:117)
[13:49:27 WARN]:        at zEssentials-1.0.1.7 (5).jar//fr.maxlego08.essentials.commands.ZCommandManager.onCommand(ZCommandManager.java:77)
[13:49:27 WARN]:        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
[13:49:27 WARN]:        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:178)
[13:49:27 WARN]:        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:1015)
[13:49:27 WARN]:        at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:1000)
[13:49:27 WARN]:        at net.minecraft.server.dedicated.DedicatedServer.handleConsoleInputs(DedicatedServer.java:566)
[13:49:27 WARN]:        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:514)
[13:49:27 WARN]:        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1642)
[13:49:27 WARN]:        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1342)
[13:49:27 WARN]:        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:333)
[13:49:27 WARN]:        at java.base/java.lang.Thread.run(Thread.java:1583)

Other files, you can drag and drop them here to upload. (optional)

No response

Screenshots/Videos (you can drag and drop files or paste links)

No response

MrLouisDew avatar Feb 02 '25 13:02 MrLouisDew