Skip to content

RedstoneWorld/RedWorldGuardFlags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RedWorldguardFlags

New helpful WorldGuard Flags provided and supported by the RedstoneWorld development team.

Flags

Used Flag-Types

Type Description Example
Boolean Specify a normal boolean value via allow or deny. allow
List of Blocks Define a list of blocks with the extended spelling support of Minecraft objects by this plugin. Multiple values in different formats (see below) can be listed in sequence (without spaces). stone,#beds
List of Entities Define a list of entities with the extended spelling support of Minecraft objects by this plugin. Multiple values in different formats (see below) can be listed in sequence (without spaces). sheep,#zombies
Integer Specify a natural number for the corresponding flag. (The used value range and the representation depend on the specific flag.) 5

Extended Object List

Materials

  • clean MATERIAL names
  • clean MATERIAL names with wildcards via "*"
  • Regex definition via "r="
  • Material-Tag starting with "#" or "tag=" - see Minecraft-Wiki (Vanilla Minecraft implementation) and PaperMC Java-Doc (Bukkit implementation) for the Material-Tag lists

EntityTypes

  • clean ENTITY-TYPE names
  • clean ENTITY-TYPE names with wildcards via "*"
  • Regex definition via "r="
  • EntityType-Tag starting with "#" or "tag=" - see Minecraft-Wiki (Vanilla Minecraft implementation) and PaperMC Java-Doc (Bukkit implementation) for the EntityType-Tag lists
Flag Type Description Default State
dispense-nbt-spawneggs Boolean Toggles whether spawn-eggs with custom NBT data will be dispensed. allow
vehicle-entity-collision Boolean Toggles whether players or mobs can collide with vehicles, so the vehicle will not move. allow
lectern-book-place Boolean Toggles whether players can place books on lecterns. (subordinate to the "build" / "block-place" flag) allow
spawnegg-use Boolean Toggles whether entities can spawn when a player uses spawn-eggs. (overrides the "mob-spawning" flag, subordinate to the "build" flag) allow
spawnegg-dispense Boolean Toggles whether entities can spawn when a dispenser dispense spawn-eggs. (overrides the "mob-spawning" flag) allow
elytra-use Boolean Toggles whether players can fly with the elytra. (subordinate to the "interact" flag) allow
allow-fishing Boolean Toggles whether players can fish. allow
boat-breakthrough Boolean Toggles whether boats can destroy hanging entities. allow
allow-trading Boolean Toggles whether players can trade with a villager or wandering trader. ¹ (subordinate to the "interact" flag) allow
entity-target Boolean Toggles whether entities can set other entities as their target (e.g. for attacking) within their target-range. Activating it afterwards is useless, as the event can only be canceled at the beginning. allow
fire-burning-out Boolean Toggles whether an ignited fire / soul_fire stays lit forever or can go out. allow
weaving-death-place Boolean Toggles whether entities can "spawn" cobweb blocks on death by the Weaving status effect. allow
allow-place-blocks List of Blocks Specifies which blocks can be place. ² (subordinate to the "build" / "block-place" flag and specified the restriction) []
deny-place-blocks List of Blocks Specifies which blocks can not be place. ² (subordinate to the "build" / "block-place" flag and specified the restriction) []
allow-break-blocks List of Blocks Specifies which blocks can be break. ² (subordinate to the "build" / "block-break" flag and specified the restriction) []
deny-break-blocks List of Blocks Specifies which blocks can not be break. ² (subordinate to the "build" / "block-break" flag and specified the restriction) []
allow-interact-blocks List of Blocks Specifies which (target) block can be interacted with. ² (subordinate to the "interact" flag) []
deny-interact-blocks List of Blocks Specifies which (target) block can not be interacted with. ² (subordinate to the "interact" flag) []
allow-interact-entity List of Entities Specifies which (target) entities can be interacted with. ² (subordinate to the "interact" flag) []
deny-interact-entity List of Entities Specifies which (target) entities can not be interacted with. ² (subordinate to the "interact" flag) []
allow-damage-entity List of Entities Specifies which (target) entities can be damaged. ² (subordinate to the "damage-animals" flag) []
deny-damage-entity List of Entities Specifies which (target) entities can not be damaged. ² (subordinate to the "damage-animals" flag) []
reset-blocks Integer (Seconds) Activate a block reset after a specified time. If the value is ≤ 0, the flag is ignored. null

¹ No item can be taken from the trade inventory and there are no XPs. The increasing career level and trade stop are displayed in the GUI, but this is only on the client side and resets itself after the entity is addressed again.

² If the flag value is empty, the next lower region is requested as usual (inheritance without a combination). The default case (without entries) is like the Vanilla behavior: All blocks / entities are allowed for the action (if the player still has the primary region-rights like "build", "interact" or "damage-animals"). With existing entry, the "ALLOW" flag type is considered as a whitelist and everything else is disallowed, and the "DENY" flag type is considered as a blacklist and everything else is allowed. The "DENY" definition is queried before the "ALLOW" definition, which must be taken into account if both types are used!

Development

Event handling

  • event.setCancelled(false); means that the event will continue to be processed by WorldGuard in this context (not used).
  • event.setCancelled(true); means that the event is canceled and WorldGuard does not continue to do anything natively.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages