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

Players not able to execute /is while in a boat #606

Closed
wellnesscookie opened this issue Mar 12, 2019 · 1 comment
Closed

Players not able to execute /is while in a boat #606

wellnesscookie opened this issue Mar 12, 2019 · 1 comment
Assignees
Labels
Status: Pending Waiting for a developer to start working on this issue. Type: Bug
Milestone

Comments

@wellnesscookie
Copy link
Contributor

wellnesscookie commented Mar 12, 2019

Description

Describe the bug

  • Players that sit in a boat and write /is receive output:
    An internal error ocurred while attempting to perform this command.
    While the console throws an error (See below)

Steps to reproduce the behavior

  1. Have A Player sit in a boat while on an island
  2. Have A Player execute /is
  3. A Player will receive: An internal error ocurred while attempting to perform this command.
  4. See console for:
[23:08:16] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing 'is' in world.bentobox.bskyblock.commands.IslandCommand(island)
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.13.2.jar:git-Paper-564]
	at org.bukkit.craftbukkit.v1_13_R2.CraftServer.dispatchCommand(CraftServer.java:734) ~[patched_1.13.2.jar:git-Paper-564]
	at net.minecraft.server.v1_13_R2.PlayerConnection.handleCommand(PlayerConnection.java:1798) ~[patched_1.13.2.jar:git-Paper-564]
	at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1606) ~[patched_1.13.2.jar:git-Paper-564]
	at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[patched_1.13.2.jar:git-Paper-564]
	at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.13.2.jar:git-Paper-564]
	at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:15) ~[patched_1.13.2.jar:git-Paper-564]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) ~[?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
	at net.minecraft.server.v1_13_R2.SystemUtils.a(SystemUtils.java:108) ~[patched_1.13.2.jar:git-Paper-564]
	at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:1011) ~[patched_1.13.2.jar:git-Paper-564]
	at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:439) ~[patched_1.13.2.jar:git-Paper-564]
	at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:938) ~[patched_1.13.2.jar:git-Paper-564]
	at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:836) ~[patched_1.13.2.jar:git-Paper-564]
	at java.lang.Thread.run(Thread.java:844) [?:?]
Caused by: java.lang.IllegalArgumentException: Material cannot be null
	at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[patched_1.13.2.jar:git-Paper-564]
	at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:73) ~[patched_1.13.2.jar:git-Paper-564]
	at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:61) ~[patched_1.13.2.jar:git-Paper-564]
	at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:49) ~[patched_1.13.2.jar:git-Paper-564]
	at world.bentobox.bentobox.managers.IslandsManager.homeTeleport(IslandsManager.java:583) ~[?:?]
	at world.bentobox.bentobox.managers.IslandsManager.homeTeleport(IslandsManager.java:535) ~[?:?]
	at world.bentobox.bentobox.api.commands.island.IslandGoCommand.execute(IslandGoCommand.java:50) ~[?:?]
	at world.bentobox.bskyblock.commands.IslandCommand.lambda$execute$0(IslandCommand.java:72) ~[?:?]
	at java.util.Optional.map(Optional.java:254) ~[?:?]
	at world.bentobox.bskyblock.commands.IslandCommand.execute(IslandCommand.java:72) ~[?:?]
	at world.bentobox.bentobox.api.commands.CompositeCommand.execute(CompositeCommand.java:251) ~[?:?]
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) ~[patched_1.13.2.jar:git-Paper-564]

  1. The teleportation is canceled, A Player is dismounted and the boat disappears.

Expected behavior

  • Not quite sure what should it do with the boat, but the player should definitely be teleported to his island when executing /is command

Environment

Server

  • OS: Debian GNU/Linux 9
  • Java version:
    Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
    Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)

Plugins

[06:32:17 INFO]: Plugins (50): AnimatedNames*, AreaShop, ArmorStandTools, BentoBox, BungeeTabListPlus*, ChatControl, ChestCommands, ChestShop*, ClearLag*, CrateReloaded, EditableSign, Essentials, EssentialsChat*, EssentialsSpawn*, ExecuteEverywhere*, FastAsyncWorldEdit*, FeatherBoard*, HeadDatabase*, HolographicDisplays, HungerKeeperPlus*, IPWhitelist*, IslandBorder, LeaderHeads*, LibsDisguises, LuckPerms, MobManager*, Multiverse-Core*, MVdWPlaceholderAPI*, NickRemover*, NoSleepCMDs*, OpenInv*, PlayerHeads, PlayerPoints*, ProtocolLib*, PvPManager*, PvPManagerBossBar*, RedstoneClockDetector*, RPGHealthIndicator*, SilkSpawners, SkinsRestorer, Spartan, TradeMe, TrophyHeads*, UnbreakingAnvils*, Vault*, VoidGenerator, WorldEdit, WorldGuard, WorldGuardPistonFix*, Yamler*

BentoBox setup

BentoBox and Addons
[23:23:07] [main/INFO]: [CHAT] Running PAPER 1.13.2.
[23:23:07] [main/INFO]: [CHAT] BentoBox version: 1.4.0-SNAPSHOT
[23:23:07] [main/INFO]: [CHAT] Loaded Game Worlds:
[23:23:07] [main/INFO]: [CHAT] skyblock (skyblock)
[23:23:07] [main/INFO]: [CHAT] Loaded Add-Ons
[23:23:07] [main/INFO]: [CHAT] BSkyBlock 1.3.0-SNAPSHOT
[23:23:07] [main/INFO]: [CHAT] Challenges 0.6.0
[23:23:07] [main/INFO]: [CHAT] Level 1.2.2-SNAPSHOT
[23:23:07] [main/INFO]: [CHAT] SerbCraftAddon 2.0
[23:23:07] [main/INFO]: [CHAT] WelcomeWarps 1.2.1-SNAPSHOT
Configuration
  • Database: mySQL

Additional context

  • None for now, good luck with solving.
@wellnesscookie wellnesscookie added Priority: Medium Status: Pending Waiting for a developer to start working on this issue. Type: Bug labels Mar 12, 2019
@tastybento tastybento self-assigned this Mar 13, 2019
@tastybento tastybento added this to the 1.4.0 milestone Mar 13, 2019
tastybento added a commit that referenced this issue Mar 13, 2019
Oak and spruce boats were causing errors due to the mismatch between
enums for tree species and material names.

#606
@tastybento
Copy link
Member

Thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Pending Waiting for a developer to start working on this issue. Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants