Bump to 1.0.6-SNAPSHOT; add ENDERMAN_ATTACK_PLAYER and FORMBLOCK actions; refactor Validator, NodeHandler and Policy to be aware of world the action takes place instead of entity (for supporting entity-less actions like FORMBLOCK); change VersionMatcher to load 1.21 implementation on all versions that don't match b1.7.3 to support future versions; properly register autocomplete for /eye command.
This commit is contained in:
parent
da27a0a40c
commit
1f053c00ac
32 changed files with 213 additions and 828 deletions
|
|
@ -5,18 +5,19 @@
|
|||
# \_\ \_____ / /_/ /_______ /\_______ /\____|__ /
|
||||
# \/ \/ \/ \/
|
||||
# EYE OF NEMESIS - Example config file.
|
||||
# Documentation in our wiki: https://github.com/adrianvic/NemesisEye
|
||||
# Documentation in our repository's /docs
|
||||
|
||||
Policies:
|
||||
- name: "Bedrock-allow-admins"
|
||||
type: "permission"
|
||||
# This example blocks the usage of bedrock without the server.usebedrock permissin
|
||||
- name: "Bedrock-allow-admins" # No spaces here or else commands which need the name as argument will not work
|
||||
type: "permission" # global | location | permission | playerName
|
||||
worlds: [world]
|
||||
effect: ALLOW
|
||||
weight: 3
|
||||
effect: ALLOW # DENY | ALLOW (overrides deny) | ALLOWONLY (allow only if met)
|
||||
weight: 3 # Greater weight overrides lower
|
||||
permissions:
|
||||
- "server.usebedrock"
|
||||
nodes:
|
||||
- [BREAK, PLACE, HIT, INTERACT]:
|
||||
- [PLACE]:
|
||||
values:
|
||||
- BEDROCK
|
||||
|
||||
|
|
@ -26,15 +27,16 @@ Policies:
|
|||
effect: DENY
|
||||
weight: 2
|
||||
nodes:
|
||||
- [BREAK, PLACE, HIT, INTERACT]:
|
||||
- [PLACE]:
|
||||
values:
|
||||
- BEDROCK
|
||||
|
||||
- name: "Block-non-beta-items" # No spaces here or else commands which need the name as argument will not work
|
||||
type: "location" # global | location | permission | playerName
|
||||
effect: DENY # DENY | ALLOW (overrides deny) | ALLOWONLY (allow only if met)
|
||||
# This example blocks all non-beta (b1.7.3) items, blocks, mobs, enchantments in a rectangular area
|
||||
- name: "Block-non-beta-items"
|
||||
type: "location"
|
||||
effect: DENY
|
||||
worlds: [world]
|
||||
weight: 0 # Greater weight overrides lower
|
||||
weight: 0
|
||||
policyAllowList: false # Inverts the policy validation logic, for example a location policy will affect all players NOT inside it's location
|
||||
locations:
|
||||
worlds: [world]
|
||||
|
|
@ -42,7 +44,7 @@ Policies:
|
|||
- corner1: { x: 2100, y: 256, z: 1400 }
|
||||
corner2: { x: 1000, y: -64, z: 2200 }
|
||||
nodes:
|
||||
- [INTERACT, BREAK, HIT, PLACE]:
|
||||
- [INTERACT, BREAK, HIT, PLACE, GLYDE, EQUIP, SPAWN]:
|
||||
values:
|
||||
- '.*'
|
||||
- [USE_ENCHANTMENT]:
|
||||
|
|
@ -59,7 +61,7 @@ Policies:
|
|||
- corner1: { x: 2100, y: 256, z: 1400 }
|
||||
corner2: { x: 1000, y: -64, z: 2200 }
|
||||
nodes:
|
||||
- [INTERACT, BREAK, HIT, PLACE]:
|
||||
- [INTERACT, BREAK, HIT, PLACE, SPAWN]:
|
||||
values:
|
||||
- AIR
|
||||
- STONE
|
||||
|
|
@ -168,4 +170,16 @@ Policies:
|
|||
- MUSIC_DISK_CAT
|
||||
- MUSIC_DISK_13
|
||||
- DIRT
|
||||
- BREAD
|
||||
- BREAD
|
||||
- ZOMBIE
|
||||
- SKELETON
|
||||
- CHICKEN
|
||||
- PIG
|
||||
- SHEEP
|
||||
- COW
|
||||
- SQUID
|
||||
- WOLF
|
||||
- PIGZOMBIE
|
||||
- SPIDER
|
||||
- GHAST
|
||||
- CREEPER
|
||||
Loading…
Add table
Add a link
Reference in a new issue