Player can place Hanging Sign but can't broke it
tmps106196 opened this issue · 2 comments
Observed Behavior
Player can place/edit Hanging Sign but can't broke it
Expected Behavior
Player can't place/edit it
Reproduction steps
1.Place it
2.Edit
3.Happend!
Stack trace or error log
- [週四 21:27:56 ERROR Minecraft] Could not pass event BlockPlaceEvent to GriefPrevention v16.18.1
java.lang.IllegalArgumentException: OAK_WALL_HANGING_SIGN isn't an item
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:143)
at org.bukkit.inventory.ItemStack.of(ItemStack.java:58)
at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:138)
at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:117)
at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:104)
at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:87)
at GriefPrevention.jar//me.ryanhamshire.GriefPrevention.GriefPrevention.allowBuild(GriefPrevention.java:3463)
at GriefPrevention.jar//me.ryanhamshire.GriefPrevention.BlockEventHandler.onBlockPlace(BlockEventHandler.java:270)
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor143.execute(Unknown Source)
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77)
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:84)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54)
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628)
at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:459)
at net.minecraft.world.item.ItemStack.useOn(ItemStack.java:487)
at net.minecraft.server.level.ServerPlayerGameMode.useItemOn(ServerPlayerGameMode.java:604)
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItemOn(ServerGamePacketListenerImpl.java:1942)
at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:44)
at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseIte
Server version
[週四 21:34:03 INFO ] Checking version, please wait...
[週四 21:34:04 INFO ] This server is running Paper version 1.21.1-52-master@e08e667 (2024-08-26T18:02:06Z) (Implementing API version 1.21.1-R0.1-SNAPSHOT)
You are 5 version(s) behind
Download the new version at: https://papermc.io/downloads/paper
Previous version: git-Paper-318 (MC: 1.20.2)
GriefPrevention version
[週四 21:34:23 INFO ] GriefPrevention version 16.18.1
Configuration
# Default values are perfect for most servers. If you want to customize and have a question, look for the answer here first: http://dev.bukkit.org/bukkit-plugins/grief-prevention/pages/setup-and-configuration/
GriefPrevention:
SeaLevelOverrides:
world: -1
world_nether: -1
world_the_end: -1
Claims:
Mode:
world_nether: Survival
world_the_end: Survival
world: Survival
PreventGlobalMonsterEggs: true
PreventTheft: true
ProtectCreatures: true
PreventButtonsSwitches: true
LockWoodenDoors: false
LockTrapDoors: false
LockFenceGates: true
EnderPearlsRequireAccessTrust: true
RaidTriggersRequireBuildTrust: true
ProtectHorses: true
ProtectDonkeys: true
ProtectLlamas: true
InitialBlocks: 100
Claim Blocks Accrued Per Hour:
Default: 100
Max Accrued Claim Blocks:
Default: 80000
Accrued Idle Threshold: 0
AccruedIdlePercent: 0
AbandonReturnRatio: 1.0
AutomaticNewPlayerClaimsRadius: 4
AutomaticNewPlayerClaimsRadiusMinimum: 0
ExtendIntoGroundDistance: 5
MinimumWidth: 5
MinimumArea: 100
MaximumDepth: -2147483648
InvestigationTool: STICK
ModificationTool: GOLDEN_SHOVEL
Expiration:
ChestClaimDays: -1
UnusedClaimDays: -1
AllClaims:
DaysInactive: -1
ExceptWhenOwnerHasTotalClaimBlocks: -1
ExceptWhenOwnerHasBonusClaimBlocks: -1
AutomaticNatureRestoration:
SurvivalWorlds: false
AllowTrappedInAdminClaims: false
MaximumNumberOfClaimsPerPlayer: 0
CreationRequiresWorldGuardBuildPermission: true
VillagerTradingRequiresPermission: true
CommandsRequiringAccessTrust: /sethome
DeliverManuals: true
ManualDeliveryDelaySeconds: 30
RavagersBreakBlocks: true
FireSpreadsInClaims: false
FireDamagesInClaims: false
LecternReadingRequiresAccessTrust: true
Spam:
Enabled: false
LoginCooldownSeconds: 60
LoginLogoutNotificationsPerMinute: 5
ChatSlashCommands: /me;/global;/local
WhisperSlashCommands: /tell;/pm;/r;/whisper;/msg
WarningMessage: Please reduce your noise level. Spammers will be banned.
BanOffenders: true
BanMessage: Banned for spam.
AllowedIpAddresses: 1.2.3.4; 5.6.7.8
DeathMessageCooldownSeconds: 120
Logout Message Delay In Seconds: 0
PvP:
RulesEnabledInWorld:
world: true
world_nether: true
world_the_end: true
ProtectFreshSpawns: true
PunishLogout: true
CombatTimeoutSeconds: 15
AllowCombatItemDrop: false
BlockedSlashCommands: /home;/vanish;/spawn;/tpa
ProtectPlayersInLandClaims:
PlayerOwnedClaims: true
AdministrativeClaims: true
AdministrativeSubdivisions: true
AllowLavaDumpingNearOtherPlayers:
PvPWorlds: true
NonPvPWorlds: false
AllowFlintAndSteelNearOtherPlayers:
PvPWorlds: true
NonPvPWorlds: false
ProtectPetsOutsideLandClaims: false
Economy:
ClaimBlocksMaxBonus: 0
ClaimBlocksPurchaseCost: 1.0
ClaimBlocksSellValue: 0.5
ProtectItemsDroppedOnDeath:
PvPWorlds: false
NonPvPWorlds: true
BlockLandClaimExplosions: true
BlockSurfaceCreeperExplosions: true
BlockSurfaceOtherExplosions: true
LimitSkyTrees: true
LimitTreeGrowth: false
PistonMovement: CLAIMS_ONLY
PistonExplosionSound: true
FireSpreads: false
FireDestroys: false
AdminsGetWhispers: true
AdminsGetSignNotifications: true
VisualizationAntiCheatCompatMode: false
SmartBan: false
Mute New Players Using Banned Words: true
MaxPlayersPerIpAddress: 3
SilenceBans: true
Siege:
Worlds: []
BreakableBlocks:
- GRASS_BLOCK
- DIRT
- COBBLESTONE
- OAK_PLANKS
- SPRUCE_PLANKS
- BIRCH_PLANKS
- JUNGLE_PLANKS
- ACACIA_PLANKS
- DARK_OAK_PLANKS
- SAND
- GRAVEL
- GLASS
- GRASS <-- can't understand this entry, see BukkitDev documentation
- FERN
- DEAD_BUSH
- WHITE_WOOL
- ORANGE_WOOL
- MAGENTA_WOOL
- LIGHT_BLUE_WOOL
- YELLOW_WOOL
- LIME_WOOL
- PINK_WOOL
- GRAY_WOOL
- LIGHT_GRAY_WOOL
- CYAN_WOOL
- PURPLE_WOOL
- BLUE_WOOL
- BROWN_WOOL
- GREEN_WOOL
- RED_WOOL
- BLACK_WOOL
- SNOW
- GLASS_PANE
DoorsOpenDelayInSeconds: 300
CooldownEndInMinutes: 60
EndermenMoveBlocks: false
SilverfishBreakBlocks: false
CreaturesTrampleCrops: false
RabbitsEatCrops: true
HardModeZombiesBreakDoors: false
Database:
URL: ''
UserName: ''
Password: ''
UseBanCommand: false
BanCommandPattern: say
Advanced:
fixNegativeClaimblockAmounts: true
ClaimExpirationCheckRate: 60
OfflinePlayer_cache_days: 90
Abridged Logs:
Days To Keep: 7
Included Entry Types:
Social Activity: true
Suspicious Activity: true
Administrative Activity: false
Debug: false
Muted Chat Messages: false
ConfigVersion: 1
Plugin list
[週四 21:35:23 INFO ] Server Plugins (54):
[週四 21:35:23 INFO ] Paper Plugins:
[週四 21:35:23 INFO ] - HuskSync, Minepacks
[週四 21:35:23 INFO ] Bukkit Plugins:
[週四 21:35:23 INFO ] - AdvancedPortals, Afk-money, AntiCrasher, ArmorStandTools, AuctionHouse, BanFromClaim, BetterRTP, BlockLocker, BossBarHealth, ChestSort
[週四 21:35:23 INFO ] ChocoFly, ComeInToClaim, CoreProtect, DecentHolograms, DeluxeMenus, *DisableJoinMessage, DiscordSRV, Elevators, *Essentials, Essentials
[週四 21:35:23 INFO ] EssentialsSpawn, FastAsyncWorldEdit, GriefPrevention, GSit, InteractiveChat, InteractiveChatDiscordSrvAddon, LuckPerms, MapSync, Multiverse-Core, NBTAPI
[週四 21:35:23 INFO ] NBTAPI, OpenInv, PlaceholderAPI, PlayerWarps, PlugManX, ProtocolLib, QuickShop-Hikari, server, ServersNPC, Shopkeepers
[週四 21:35:23 INFO ] SternalBoard, SuperHarvest, TAB-Bridge, TP-loc, tpClaimList, UltimateAutoRestart, Vault, VentureChat, ViaBackwards, ViaRewind
[週四 21:35:23 INFO ] ViaVersion, WorldEdit
Running without GriefPrevention
- I attempted running the server without GriefPrevention installed.
- The problem does not occur when GriefPrevention is removed from the server.
Running with only GriefPrevention
- I attempted running only GriefPrevention on the server.
- The issue still occurs when GriefPrevention is the only plugin running.
Running on a fresh, clean server installation
- I attempted testing for the issue on a new server.
- The issue still occurs on a new server.
Using unmodified client
- I attempted testing for the issue with the vanilla client.
- The issue still occurs when using the vanilla client.
We appreciate you taking the time to fill out a bug report!
- I searched for similar issues before submitting this bug report.
Duplicate of #2308