Open stan60250 opened 7 years ago
-1
This repeats the same line of code over and over -> should be its own method
Its own method
The isLockable(Block block)
and isLocked(Block block)
method in LocketteProAPI.java to the rescue. We only need to add the world check code twice.
One more thing: What's with those "ignoreCancelled" you just added? Was that intentional?
Yes. I replaced if (event.isCancelled()) return;
with @EventHandler(ignoreCancelled = true)
It's same but is it much more easier?
https://bukkit.org/threads/ignore-cancelled-events.61155/
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/EventHandler.html
Ah I see.
Added language Chinese(traditional) and disable in specific worlds feature.