Skip to content

View Handlers

SuperRonanCraft edited this page Jun 1, 2019 · 9 revisions

The View-Handlers helps you prevent players from seeing an item!
This is also helpful for creating dynamic items that change if certain requirements are successful.

Example

Items:
  <UNIQUEID>:
    View-Handlers:
      Permission:
      - 'example.permission'
      - '-example.permission#2'
      World: 
      - 'world_nether'
      Price: 50
      Points: 25
      Arguments: []

Summary

Permission

Type Supports Placeholders?
StringList Yes

Set the permission(s) a player must have to see the item.
Add a - before the permission to show the item if the player does NOT have the permission!


World

Type Supports Placeholders?
StringList Yes

Set the world the player must be in to see the item. Add a - before the world name to show the item only in the player is NOT in the world!


Price

Type Supports Placeholders? Required Dependencies
Integer Yes Vault + an Economy-plugin

Set the amount of currency the player needs to have to see the item. (Does not take/remove currency)


Price

Type Supports Placeholders? Required Dependencies
Integer Yes PlayerPoints

Set a amount of points the player needs to have to see the item. (Does not take/remove points)


Arguments

Type Added
Key Section 4.2.0

Learn how to check for conditions being met with Arguments!

Clone this wiki locally