Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin Commands can not be execute from console after Bentobox 1.18 update. #1877

Closed
myavuzokumus opened this issue Nov 10, 2021 · 0 comments
Closed
Assignees
Labels
Status: Done This issue has been completed or answered. This pull request has been merged. Status: Important Must be done ASAP. Type: Bug

Comments

@myavuzokumus
Copy link
Contributor

Expected behavior

Console need to run the bentobox admin commands

Observed/Actual behavior

> bsb tp Over_Brave Over_Brave
[14:03:43 WARN]: Unexpected exception while parsing console command "bsb tp Over_Brave Over_Brave"
org.bukkit.command.CommandException: Unhandled exception executing 'bsb tp Over_Brave Over_Brave' in world.bentobox.bskyblock.BSkyBlock$2(bsbadmin)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:182) ~[patched_1.17.1.jar:git-Airplane-58]
        at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchCommand(CraftServer.java:869) ~[patched_1.17.1.jar:git-Airplane-58]
        at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchServerCommand(CraftServer.java:832) ~[patched_1.17.1.jar:git-Airplane-58]
        at net.minecraft.server.dedicated.DedicatedServer.handleConsoleInputs(DedicatedServer.java:542) ~[patched_1.17.1.jar:git-Airplane-58]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:504) ~[patched_1.17.1.jar:git-Airplane-58]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1495) ~[patched_1.17.1.jar:git-Airplane-58]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1288) ~[patched_1.17.1.jar:git-Airplane-58]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321) ~[patched_1.17.1.jar:git-Airplane-58]
        at net.minecraft.server.MinecraftServer$$Lambda$3684/0x00000000cccb0ed8.run(Unknown Source) ~[app:?]
        at java.lang.Thread.run(Thread.java:853) ~[?:?]
Caused by: java.lang.NullPointerException: User is not a player!
        at java.util.Objects.requireNonNull(Objects.java:233) ~[?:?]
        at world.bentobox.bentobox.api.user.User.getPlayer(User.java:215) ~[BentoBox-1.18.0.jar:?]
        at world.bentobox.bentobox.api.commands.admin.AdminTeleportCommand.execute(AdminTeleportCommand.java:104) ~[BentoBox-1.18.0.jar:?]
        at world.bentobox.bentobox.api.commands.CompositeCommand.call(CompositeCommand.java:266) ~[BentoBox-1.18.0.jar:?]
        at world.bentobox.bentobox.api.commands.CompositeCommand.execute(CompositeCommand.java:239) ~[BentoBox-1.18.0.jar:?]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:172) ~[patched_1.17.1.jar:git-Airplane-58]
        ... 9 more

Steps/models to reproduce

Try this command on console "bsb tp "

BentoBox version

image

Plugin list

No response

Other

No response

@Poslovitch Poslovitch added Status: Important Must be done ASAP. Status: Pending Waiting for a developer to start working on this issue. Type: Bug labels Nov 10, 2021
@tastybento tastybento self-assigned this Nov 11, 2021
@tastybento tastybento added Status: Under investigation Investigating the interest and the feasability of the issue. Status: In progress Working on the issue. and removed Status: Pending Waiting for a developer to start working on this issue. Status: Under investigation Investigating the interest and the feasability of the issue. labels Nov 11, 2021
tastybento added a commit that referenced this issue Nov 11, 2021
@tastybento tastybento added Status: Done This issue has been completed or answered. This pull request has been merged. and removed Status: In progress Working on the issue. labels Nov 11, 2021
tastybento added a commit that referenced this issue Dec 5, 2021
* Version 1.18.1

* Added snapshot repo to Maven info.

* Fixes console teleporting.

#1877

* Address potential NPE's

* Preveent NPEs and other items.

* Remove dead paper forks (#1884)

Tuinity has since merged with Paper, and is now not a valid fork

Airplane is shutting down / not updating to 1.18.x

* Added toString to resolve issue with arrays

* Fix minor JavaDoc mistake

Co-authored-by: Fredthedoggy <45927799+Fredthedoggy@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Done This issue has been completed or answered. This pull request has been merged. Status: Important Must be done ASAP. Type: Bug
Projects
None yet
Development

No branches or pull requests

3 participants