Console Warnings For /acid Range
Expected Behavior
When using the /range display
command in BentoBox, a warning message is displayed in the console. This warning occurs after setting the acidisland.island.range.<
permission. The user expects the island border to dynamically change based on the resolution. However, the set
command works correctly, and the border changes, but the warning message persists.
Observed/Actual Behavior
There are no warnings in the console when using the /range display
command. The island border can be dynamically displayed when changing the resolution.
Steps/Models to Reproduce
- New Installation with Default Settings: Create a new installation with the default settings for BentoBox.
- Creating an Island: Create an island using the BentoBox commands.
- Enabling Border Display: Enable the border display for the island.
- Activating Permission via LuckPerms: Activate the
acidisland.island.range.<
permission using LuckPerms. - Warnings Start Pouring In: After a while, warnings start pouring in the console.
BentoBox Version
The BentoBox version used for this test is 3.3.4.
Plugin List
The plugins used in this test are:
- Paper Plugins (1):
- nightcore
- Bukkit Plugins (7):
- BentoBox
- BentoBox-AcidIsland
- CoinsEngine
- Diely
- FastAsyncWorldEdit
- LuckPerms
- Vault
Other
The console output shows a series of warnings with the following message:
java.lang.IllegalArgumentException: Unexpected value: HAPPY_VILLAGER
This warning occurs repeatedly, indicating a potential issue with the AdminRangeDisplayCommand
in BentoBox.
Investigation
To investigate this issue, we need to examine the AdminRangeDisplayCommand
class in BentoBox. The warning message suggests that there is an unexpected value being passed to the spawnParticle
method in the User
class.
Possible Causes
- Incorrect Permission Value: The
acidisland.island.range.<
permission value may be incorrect, causing the unexpected value error. - BentoBox Bug: There may be a bug in the
AdminRangeDisplayCommand
class that is causing the unexpected value error. - Plugin Conflict: A conflict between plugins may be causing the unexpected value error.
Resolution
To resolve this issue, we need to:
- Verify Permission Value: Verify that the
acidisland.island.range.<
permission value is correct. - Update BentoBox: Update BentoBox to the latest version to check for any bug fixes.
- Check Plugin Conflicts: Check for any plugin conflicts that may be causing the issue.
Q: What is the expected behavior when using the /range display command in BentoBox?
A: When using the /range display
command in BentoBox, a warning message is displayed in the console. This warning occurs after setting the acidisland.island.range.<
permission. The user expects the island border to dynamically change based on the resolution.
Q: What is the observed behavior when using the /range display command in BentoBox?
A: There are no warnings in the console when using the /range display
command. The island border can be dynamically displayed when changing the resolution.
Q: What are the steps to reproduce the issue?
A: To reproduce the issue, follow these steps:
- New Installation with Default Settings: Create a new installation with the default settings for BentoBox.
- Creating an Island: Create an island using the BentoBox commands.
- Enabling Border Display: Enable the border display for the island.
- Activating Permission via LuckPerms: Activate the
acidisland.island.range.<
permission using LuckPerms. - Warnings Start Pouring In: After a while, warnings start pouring in the console.
Q: What is the BentoBox version used for this test?
A: The BentoBox version used for this test is 3.3.4.
Q: What plugins are used in this test?
A: The plugins used in this test are:
- Paper Plugins (1):
- nightcore
- Bukkit Plugins (7):
- BentoBox
- BentoBox-AcidIsland
- CoinsEngine
- Diely
- FastAsyncWorldEdit
- LuckPerms
- Vault
Q: What is the console output showing?
A: The console output shows a series of warnings with the following message:
java.lang.IllegalArgumentException: Unexpected value: HAPPY_VILLAGER
Q: What are the possible causes of the issue?
A: The possible causes of the issue are:
- Incorrect Permission Value: The
acidisland.island.range.<
permission value may be incorrect, causing the unexpected value error. - BentoBox Bug: There may be a bug in the
AdminRangeDisplayCommand
class that is causing the unexpected value error. - Plugin Conflict: A conflict between plugins may be causing the unexpected value error.
Q: How can the issue be resolved?
A: To resolve the issue, follow these steps:
- Verify Permission Value: Verify that the
acidisland.island.range.<
permission value is correct. - Update BentoBox: Update BentoBox to the latest version to check for any bug fixes.
- Check Plugin Conflicts: Check for any plugin conflicts that may be causing the issue.
By following these steps, we can identify and resolve the issue causing the console warnings for the /acid range
command in BentoBox.