lift up (or down) and new button in proximities
LadyCailinBot opened this issue ยท 2 comments
CRAFTBOOK-3366 - Reported by sat
when i place a new button (accacia_button) on site of sign for lift up/down i obtain this in console :
org.bukkit.event.EventException: null
at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:37) ~[patched_1.13.1.jar:git-Paper-271]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) ~[patched_1.13.1.jar:git-Paper-271]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[patched_1.13.1.jar:git-Paper-271]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:513) ~[patched_1.13.1.jar:git-Paper-271]
at org.bukkit.craftbukkit.v1_13_R2.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:155) ~[patched_1.13.1.jar:git-Paper-271]
at net.minecraft.server.v1_13_R2.ItemStack.placeItem(ItemStack.java:224) ~[patched_1.13.1.jar:git-Paper-271]
at net.minecraft.server.v1_13_R2.PlayerInteractManager.a(PlayerInteractManager.java:525) ~[patched_1.13.1.jar:git-Paper-271]
at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1332) ~[patched_1.13.1.jar:git-Paper-271]
at net.minecraft.server.v1_13_R2.PacketPlayInUseItem.a(PacketPlayInUseItem.java:37) ~[patched_1.13.1.jar:git-Paper-271]
at net.minecraft.server.v1_13_R2.PacketPlayInUseItem.a(PacketPlayInUseItem.java:5) ~[patched_1.13.1.jar:git-Paper-271]
at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:12) ~[patched_1.13.1.jar:git-Paper-271]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_181]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_181]
at net.minecraft.server.v1_13_R2.SystemUtils.a(SourceFile:199) ~[patched_1.13.1.jar:git-Paper-271]
at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:1018) ~[patched_1.13.1.jar:git-Paper-271]
at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:428) ~[patched_1.13.1.jar:git-Paper-271]
at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:945) ~[patched_1.13.1.jar:git-Paper-271]
at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:843) ~[patched_1.13.1.jar:git-Paper-271]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
Caused by: java.lang.ClassCastException: org.bukkit.material.MaterialData cannot be cast to org.bukkit.material.Button
at com.sk89q.craftbook.bukkit.MechanicListenerAdapter.checkBlockChange(MechanicListenerAdapter.java:161) ~[?:?]
at com.sk89q.craftbook.bukkit.MechanicListenerAdapter.onBlockPlace(MechanicListenerAdapter.java:125) ~[?:?]
at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:35) ~[patched_1.13.1.jar:git-Paper-271]
... 18 more
my conf for this test :
CraftBook Configuration Report
Generated 2018-09-18 11:48 +0200
Version: 3.9-SNAPSHOT;4443-cea2327
------------------
Server Information
------------------
Java : Oracle Corporation 1.8.0_181 (http://java.oracle.com/)
Operating system : Linux 4.4.0-116-generic (amd64)
Available processors: 6
Free memory : 263 MB
Max memory : 1753 MB
Total memory : 763 MB
Server ID : unnamed
Server name : Unknown Server
Implementation : git-Paper-271 (MC: 1.13.1)
Player count : 1/20
------------
Plugins (11)
------------
PermissionsEx : 1.23.4
WorldEdit : 7.0.0-SNAPSHOT;3860-2521a9a
Vault : 1.7.1-b${env.TRAVIS_BUILD_NUMBER}
Essentials : dev-24.75
EssentialsSpawn : dev-24.75
EssentialsChat : dev-24.75
EssentialsGeoIP : dev-24.75
ProtocolLib : 4.4.0-SNAPSHOT-b415
WorldGuard : 7.0.0-SNAPSHOT;1744-8e819f7
CraftBook : 3.9-SNAPSHOT;4443-cea2327
EssentialsProtect: dev-24.75
---------------------
CraftBook Information
---------------------
Mechanics Loaded : 16
ST Mechanics Loaded: 0
----------------
Loaded Mechanics
----------------
BetterLeads : package com.sk89q.craftbook.mechanics
Bridge : package com.sk89q.craftbook.mechanics.area.simple
CustomCrafting: package com.sk89q.craftbook.mechanics.crafting
CustomDrops : package com.sk89q.craftbook.mechanics.drops
Door : package com.sk89q.craftbook.mechanics.area.simple
Elevator : package com.sk89q.craftbook.mechanics
Gate : package com.sk89q.craftbook.mechanics.area.simple
HeadDrops : package com.sk89q.craftbook.mechanics.headdrops
HiddenSwitch : package com.sk89q.craftbook.mechanics
JackOLantern : package com.sk89q.craftbook.mechanics
Netherrack : package com.sk89q.craftbook.mechanics
PaintingSwitch: package com.sk89q.craftbook.mechanics
SignCopier : package com.sk89q.craftbook.mechanics.signcopier
Teleporter : package com.sk89q.craftbook.mechanics
TreeLopper : package com.sk89q.craftbook.mechanics
Chair : package com.sk89q.craftbook.mechanics
--------------------------
Loaded Self Triggering ICs
--------------------------
---------------
Custom Crafting
---------------
Recipe ID : furnaceexample
Recipe Type : FURNACE
Ingredient : STONE
Result : STONE
Advanced-Data: {}
Recipe Shape : [aa, bb]
--------------------
Global Configuration
--------------------
Configuration:
enabledMechanics : [BetterLeads, Bridge, CustomCrafting, CustomDrops, Door, Elevator, Gate, HeadDrops, HiddenSwitch, JackOLantern, Netherrack, PaintingSwitcher, SignCopier, Teleporter, TreeLopper, Chairs]
noOpPermissions : false
indirectRedstone : false
useBlockDistance : false
safeDestruction : true
stThinkRate : 2
obeyWorldguard : true
advancedBlockChecks : true
pedanticBlockChecks : false
showPermissionMessages: true
signClickTimeout : 10
convertNamesToCBID : true
easterEggs : true
realisticRandoms : false
language : en_US
languages : [en_US]
languageScanText : false
debugMode : false
debugLogToFile : false
debugFlags : []
persistentStorageType : YAML
logger : com.destroystokyo.paper.utils.PaperPluginLogger@1b578c14
-----------------------
Mechanic Configurations
-----------------------
BetterLeads :
leadsStopTarget : true
leadsOwnerBreakOnly: true
leadsHitchPersists : true
leadsMobRepellant : true
leadsAllowedMobs : [ZOMBIE_HORSE, SKELETON_HORSE, WOLF, IRON_GOLEM, CHICKEN, MUSHROOM_COW, COW, PIG, RABBIT, SHEEP, DONKEY, HORSE, MULE, LLAMA, TURTLE, ZOMBIE, SKELETON, CREEPER]
Bridge :
allowRedstone: true
maxLength : 30
maxWidth : 5
blocks : [minecraft:cobblestone, minecraft:stone_bricks, minecraft:mossy_stone_bricks, minecraft:acacia_planks, minecraft:jungle_planks, minecraft:spruce_planks, minecraft:oak_planks, minecraft:dark_oak_planks, minecraft:bricks, minecraft:glass, minecraft:black_stained_glass, minecraft:blue_stained_glass, minecraft:brown_stained_glass, minecraft:cyan_stained_glass, minecraft:gray_stained_glass, minecraft:green_stained_glass, minecraft:light_blue_stained_glass, minecraft:light_gray_stained_glass, minecraft:lime_stained_glass, minecraft:magenta_stained_glass, minecraft:orange_stained_glass, minecraft:pink_stained_glass, minecraft:purple_stained_glass, minecraft:red_stained_glass, minecraft:white_stained_glass, minecraft:yellow_stained_glass]
CustomCrafting:
manager : com.sk89q.craftbook.mechanics.crafting.RecipeManager@135649c9
registeredNames: [furnaceexample, shapelessexample, shapeexample]
advancedRecipes: {}
CustomDrops :
config : com.sk89q.util.yaml.YAMLProcessor@436fbb23
definitions : [com.sk89q.craftbook.mechanics.drops.BlockCustomDropDefinition@4a08f632, com.sk89q.craftbook.mechanics.drops.EntityCustomDropDefinition@7bda9912]
customDropPermissions: false
removeVanillaDrops : false
Door :
allowRedstone: true
maxLength : 30
maxWidth : 5
blocks : [minecraft:cobblestone, minecraft:stone_bricks, minecraft:mossy_stone_bricks, minecraft:acacia_planks, minecraft:jungle_planks, minecraft:spruce_planks, minecraft:oak_planks, minecraft:dark_oak_planks, null, minecraft:glass, minecraft:black_stained_glass, minecraft:blue_stained_glass, minecraft:brown_stained_glass, minecraft:cyan_stained_glass, minecraft:gray_stained_glass, minecraft:green_stained_glass, minecraft:light_blue_stained_glass, minecraft:light_gray_stained_glass, minecraft:lime_stained_glass, minecraft:magenta_stained_glass, minecraft:orange_stained_glass, minecraft:pink_stained_glass, minecraft:purple_stained_glass, minecraft:red_stained_glass, minecraft:white_stained_glass, minecraft:yellow_stained_glass]
Elevator :
flyingPlayers : null
elevatorAllowRedstone : true
elevatorRedstoneRadius: 3
elevatorButtonEnabled : true
elevatorLoop : false
elevatorSlowMove : false
elevatorMoveSpeed : 0.5
Gate :
allowRedstone: true
limitColumns : true
columnLimit : 14
blocks : [minecraft:acacia_fence, minecraft:birch_fence, minecraft:jungle_fence, minecraft:oak_fence, minecraft:spruce_fence, minecraft:dark_oak_fence, minecraft:nether_brick_fence, minecraft:iron_bars, minecraft:glass_pane]
enforceType : true
columnHeight : 12
searchRadius : 3
HeadDrops :
enableMobs : true
enablePlayers : true
playerKillsOnly: true
miningDrops : true
overrideNatural: false
dropRate : 0.05
rateModifier : 0.05
showNameClick : false
customDropRates: {}
customSkins : {}
ignoredNames : [cscorelib]
HiddenSwitch :
anyside: true
JackOLantern :
Netherrack :
PaintingSwitch:
paintings: {}
players : {}
SignCopier :
signs: {}
item : minecraft:ink_sac
Teleporter :
requireSign: false
maxRange : 0
TreeLopper :
enabledBlocks : [minecraft:oak_log, minecraft:spruce_log, minecraft:birch_log, minecraft:jungle_log, minecraft:acacia_log, minecraft:dark_oak_log]
enabledItems : [minecraft:diamond_axe, minecraft:golden_axe]
maxSearchSize : 15
allowDiagonals : false
placeSaplings : true
breakLeaves : false
singleDamageAxe: true
Chair :
chairs : {}
chairAllowHeldBlock: false
chairHealth : true
chairHealAmount : 1.0
chairBlocks : [minecraft:oak_stairs, minecraft:oak_stairs]
chairFacing : true
chairRequireSign : false
chairMaxDistance : 3
chairMaxClickRadius: 3
-------------
END OF REPORT
Comment by sat
thats right for all sign and all new buttons.
it seem a error due to org.bukkit.material.MaterialData
if sign is empty, is same.