mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 11:40:41 +00:00
Check if WORLDEDIT_RESTRICTIONS is enabled
Unregister if disabled.
This commit is contained in:
parent
10e5760ba8
commit
55d6217c32
1 changed files with 1 additions and 2 deletions
|
@ -23,8 +23,7 @@ import java.util.Set;
|
|||
public class WESubscriber {
|
||||
|
||||
@Subscribe(priority = Priority.VERY_EARLY) public void onEditSession(EditSessionEvent event) {
|
||||
WorldEdit worldedit = PlotSquared.get().worldedit;
|
||||
if (worldedit == null) {
|
||||
if (!Settings.Enabled_Components.WORLDEDIT_RESTRICTIONS) {
|
||||
WorldEdit.getInstance().getEventBus().unregister(this);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue