Skip to content

Commit 46c1314

Browse files
committed
slightly imporve pluginyml class generation
1 parent 7425448 commit 46c1314

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

src/core/main/java/com/ampznetwork/worldmod/core/event/EventDispatchBase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import org.comroid.api.data.Vector;
2020
import org.comroid.api.func.util.Streams;
2121
import org.comroid.api.func.util.Tuple;
22+
import org.comroid.api.model.minecraft.model.DefaultPermissionValue;
2223
import org.jetbrains.annotations.NotNull;
2324

2425
import java.time.Duration;
@@ -98,7 +99,7 @@ public boolean tryDispatchWandEvent(Cancellable cancellable, Player player, Vect
9899
if (cancellable.isCancelled()) return false;
99100
if (modifier == 0 || player == null || !mod.getLib().getPlayerAdapter()
100101
.checkPermission(player.getId(), type.usePermission.toString())
101-
.toBooleanOrElse(PluginYml.Permission.worldmod.lookup.wand.getDefaultValue())) {
102+
.toBooleanOrElse(PluginYml.Permission.worldmod.lookup.wand.getDefault() == DefaultPermissionValue.TRUE)) {
102103
// not permitted
103104
// todo: send 'not permitted' message?
104105
return false;

src/spigot/main/resources/plugin.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ commands:
3434
permissions:
3535
worldmod:
3636
description: WorldMod root permission node
37-
default: false
3837
children:
3938
worldmod.reload:
4039
description: Permission for the /worldmod:reload command
41-
default: false
40+
default: op
4241
worldmod.selection:
4342
description: Permission for making and interacting with selections
44-
default: true #
43+
default: true
4544
children:
4645
worldmod.selection.pos:
4746
description: Permission to use the /pos commands to make a selection
47+
default: true
4848
worldmod.selection.wand:
4949
description: Permission to use the selection wand item
5050
default: true
@@ -53,14 +53,14 @@ permissions:
5353
default: true
5454
worldmod.region:
5555
description: Permission for administrating regions and creating common claims
56-
default: false
56+
default: op
5757
worldmod.lookup:
5858
description: Permission for looking up logged world events
59-
default: false
59+
default: op
6060
children:
6161
worldmod.lookup.wand:
6262
description: Permission to use the lookup wand item
63-
default: false
63+
default: op
6464
worldmod.wand:
6565
description: Permission for toggling the wand item
6666
default: true
@@ -70,4 +70,4 @@ permissions:
7070
default: true
7171
worldmod.wand.lookup:
7272
description: Permission for toggling the lookup wand item
73-
default: false
73+
default: op

0 commit comments

Comments
 (0)