Configuration Tips & Tricks

Configuration Tips & Tricks

Basic Format

        enter:
            inventory:
            - value
            - value
            xp:
            - value
            health:
            - value
            hunger:
            - value
            - value
        exit:
            inventory:
            - value
            - value
            - value
            xp:
            - value
            health:
            - value
            - value
            hunger:
            - value

Values

You can use one or more of these values to define what should happen:

clear
Reset an item back to its default value
inventory: The inventory is cleared
health: Reset to full health
hunger: Reset the food-level to full
xp: Reset to 0
store
Stores the value of an item for the region where the player is coming from.
inventory: The inventory is saved
health: The health is saved
hunger: The food-level is saved
xp: The XP are saved
restore
Restores a saved item of the region where the player is going into
inventory: The inventory is restored
health: The health is restored
hunger: The food-level is restored
xp: The XP are restored
reward
Puts the current item into the reward system (only inventory)
inventory: The current inventory of the player is copied into the reward system. The player can access these items with the command /tf reward

These values are always applied in this order: SOTRE - REWARD - RESTORE - CLEAR

Configuration Examples

Totally independent region

Inventory, health, hunger annd xp are completely independent from all other regions and from the normal world.

        enter:
            inventory:
            - store
            - restore
            xp:
            - store
            - restore
            health:
            - store
            - restore
            hunger:
            - store
            - restore
        exit:
            inventory:
            - restore
            - store
            xp:
            - store
            - restore
            health:
            - store
            - restore
            hunger:
            - store
            - restore

Independent inventory, global health, xp, hunger

You have a seperate inventory in the region but your health, xp, and hunger is the same as in the default world.

        enter:
            inventory:
            - store
            - restore
            xp:
            health:
            hunger:
        exit:
            inventory:
            - restore
            - store
            xp:
            health:
            hunger:

Shopping area

When you enter, your inventory is cleared. You can now buy items (you will need another plugin for this ;)). When you leave you get your old inventory back and you can access the items you have brought with /tf reward

        enter:
            inventory:
            - store
            - clear
            xp:
            health:
            hunger:
        exit:
            inventory:
            - restore
            - reward
            xp:
            health:
            hunger:

Recovery zone

Restores health and hunger.

        enter:
            inventory:
            xp:
            health:
            - clear
            hunger:
            - clear
        exit:
            inventory:
            xp:
            health:
            - clear
            hunger:
            - clear

Creative Area

cmdEnter:
- c:gamemode %name% 1
cmdExit:
- c:gamemode %name% 0

Comments

Posts Quoted:
Reply
Clear All Quotes