Quantcast
Channel: SpigotMC - High Performance Minecraft
Viewing all articles
Browse latest Browse all 128654

Update lever status in 1.14

$
0
0
Hello guys,
I am creating a little remote control plugin at the moment, but the lever is not updating.

My Code:
Code (Java):
CraftLever lever = (CraftLever) b.getBlockData();
lever.setPowered(!(lever.isPowered()));

Best regards,
Justus | Justix

Viewing all articles
Browse latest Browse all 128654

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>