BentoBoxWorld / BentoBox

Expandable Minecraft server plugin for island-type games like SkyBlock or AcidIsland.
https://bentobox.world
Eclipse Public License 2.0
338 stars 140 forks source link

Offline Redstone Bypass Permission for Staff #1102

Closed Tina-King closed 4 years ago

Tina-King commented 4 years ago

Description

Is your feature request related to a problem?

Currently there is no way for staff to bypass the "Offline Redstone" feature, which means if staff need to moderate players islands then redstone is an issue.

Describe the solution you'd like us to implement.

There should be a bypass permission for staff. When a player with the said permission enters an island the redstone should start working, and when the staff leaves the island the redstone should turn off again.

Describe alternatives you've considered.

N/A

Additional context

tastybento commented 4 years ago

I'm thinking that redstone will work if a player with the bskyblock.mod.bypassprotect perm is on the island.

Tina-King commented 4 years ago

I already tested it with bskyblock.mod.bypassprotect perm and it does not bypass currently. Not sure if you have already worked that out and patched it?

tastybento commented 4 years ago

Hmm, I just tested on build 1568 and it works fine. Note that if the current has been stopped before, you may need to kickstart any machines to make them run again.

> bbox v
[18:25:49 INFO]: Running PAPER 1.15.1.
[18:25:49 INFO]: BentoBox version: 1.11.0-SNAPSHOT-b1568
[18:25:49 INFO]: Database: JSON
[18:25:49 INFO]: Loaded Game Worlds:
[18:25:49 INFO]: bskyblock_world (BSkyBlock): Overworld, Nether, End
[18:25:49 INFO]: Loaded Addons:
[18:25:49 INFO]: Biomes 1.6.0.1 (ENABLED)
[18:25:49 INFO]: BSkyBlock 1.9.0 (ENABLED)
[18:25:49 INFO]: Challenges 0.8.0 (ENABLED)
[18:25:49 INFO]: ControlPanel 1.7.0 (ENABLED)
[18:25:49 INFO]: DimensionalTrees 1.6.0 (ENABLED)
[18:25:49 INFO]: IslandFly 1.7.2-SNAPSHOT-b101 (ENABLED)
[18:25:49 INFO]: Level 1.9.1-SNAPSHOT-LOCAL (ENABLED)
[18:25:49 INFO]: Warps 1.9.0 (ENABLED)
Tina-King commented 4 years ago

That seems to have fixed it but since updating bentobox I am getting this error:

[10:05:26 WARN]: [BentoBox] Task #3793 for BentoBox v1.11.0-SNAPSHOT-b1569 generated an exception
java.lang.IncompatibleClassChangeError: Expecting non-static method world.bentobox.bentobox.api.events.addon.AddonEvent.builder()Lworld/bentobox/bentobox/api/events/addon/AddonEvent$AddonEventBuilder;
at world.bentobox.level.calculators.PlayerLevel.fireIslandLevelCalcEvent(PlayerLevel.java:69) ~[?:?]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:84) ~[patched_1.15.1.jar:git-Paper-33]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:452) ~[patched_1.15.1.jar:git-Paper-33]
at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1179) ~[patched_1.15.1.jar:git-Paper-33]
at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:417) ~[patched_1.15.1.jar:git-Paper-33]
at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1106) ~[patched_1.15.1.jar:git-Paper-33]
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:933) ~[patched_1.15.1.jar:git-Paper-33]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
bbox v
[10:11:50 INFO]: Running PAPER 1.15.1.
[10:11:50 INFO]: BentoBox version: 1.11.0-SNAPSHOT-b1569
[10:11:50 INFO]: Database: JSON
[10:11:50 INFO]: Loaded Game Worlds:
[10:11:50 INFO]: bskyblock_world (BSkyBlock): Overworld, Nether, End
[10:11:50 INFO]: Loaded Addons:
[10:11:50 INFO]: Biomes 1.6.0.1 (ENABLED)
[10:11:50 INFO]: Border 1.0.3 (ENABLED)
[10:11:50 INFO]: BSkyBlock 1.10.1-SNAPSHOT-b583 (ENABLED)
[10:11:50 INFO]: Challenges 0.9.0-SNAPSHOT-#395 (ENABLED)
[10:11:50 INFO]: Chat 1.0.2-SNAPSHOT-b11 (ENABLED)
[10:11:50 INFO]: ControlPanel 1.7.0 (ENABLED)
[10:11:50 INFO]: DimensionalTrees 1.6.0 (ENABLED)
[10:11:50 INFO]: Greenhouses 1.0.0 (ENABLED)
[10:11:50 INFO]: IslandFly 1.7.2-SNAPSHOT-b101 (ENABLED)
[10:11:50 INFO]: Level 1.9.1-SNAPSHOT-b332 (ENABLED)
[10:11:50 INFO]: Limits 1.9.0 (ENABLED)
[10:11:50 INFO]: Warps 1.9.2-SNAPSHOT-b218 (ENABLED)
Poslovitch commented 4 years ago

@Tina-King Please open a bug report on Level's repository.