Guide

http://www.ominecraft.com/uploads/rpgleveling/logo.png

Setting up classes is easy.

Rewards are inputted as follows:
level;RewardType;input

A Players name can be used with %player%


Commands

level;command;command line
Example:
2;command;shot give %player% AK-47
Give an AK-47 from the plugin CrackShot to the player as a reward.
Notice how there is no / in that line at all. Don't use it.

Command can be replaced with:

consolecommand -
Runs command from console. Be careful with this. Some plugins will not allow you to run from console. Example, if you wanted a UI to pop up when they leveled up. Maybe to spend some points from the Points plugin, most chestcommand plugins will not run from console. (see, I just gave you one killer idea)

level;consolecommand;command to run

playercommand -
Runs the command from the players end. Whatever command it is, they MUST have the permission from that plugin.

level;playercommand;command to run

command -
Runs the command in OP. This is perfect and what 99% of you will use.

level;command;command to run


Permissions

level;permission;permission node
Example:
55;permission;shop.vip
This gave the player vip access to certian buy tabs with ShopGUI plugin.
You don't need to put - in front of your permissions.


Money

level;money;amount
Example:
32;money;500
500 of a servers currency is rewarded at level 32


Real Minecraft Levels

level;reallevel;amount
Example:
100;reallevel;75
This would give the player 75 enchanting or anvil levels when they reach level 100.


Item Permission

level;item_permission;ItemName
Example:
30;item_permission;diamond_sword

This is defined in your Classes.yml under blockedItems:


Potion Effects

level;potion_type;level
Example:
30;health_boost;2


Classes.yml Example

The classes.yml is pretty self explanatory. But, everything below, is explained above. With the exception of gaining exp and losing it.

options:
  blockedItems:
  - diamond_sword
  - '276'
//Add blocked items to the list. This will prevent
//users from using them until they are rewarded it.

classes:
  WarriorPath: //class
    name: The path of a warrior  //Name in chat when broadcasting on
//a level up.
    permissionToJoin: rpglevel.join
//You can add onto this. Each class you make, you can make them each
//a different permission. rpglevel.join.Classname

    rewards:
    - 2;command;cast teach %player% fireball
    - 2;money;500
    - 2;command;dhp set %player% 5

    - 10;reallevel;15
    - 10;command;dhp set %player% 10
    - 10;command;cast teach %player% prayer
    - 10;command;loot Level10
    - 10;playercommand;motd
    - 10;consolecommand;tell %player% hello %player% You are so mathmatical!

    - 20;money;5000
    - 20;reallevel;30

    - 25;permission;essentials.motd

    - 30;reallevel;60
    - 30;item_permission;diamond_sword

    potioneffects:
    - 10/health_boost;1
    - 20/health_boost;2
    - 25/damage_resistance;1

//If you want to go higher in levels, make sure you change 
//the max level setting in the config.yml

broadcastLevels:
    - '2'
    - '10'
    - '20'
    - '25'
    - '30'
//This will broadcast to the server what level the player has made
//it to. It will use the name: section above.

killGain:
    - zombie;12
    - player;20
    - creeper;15
    - cave_spider;18
    - skeleton;14
    - spider;12
    - chicken;3
    - cow;3
    - horse;2
    - bat;3
    - ender_dragon;8001
    - enderman;7
    - silverfish;5
    - mushroom_cow;5
    - ocelot;3
    - sheep;2
    - slime;8
    - squid;4
    - witch;12
    - wither;1200
    - wolf;5
    - pig;5
    - pig_zombie;15
    - magma_cube;18
    - blaze;15
breakGain:
    - gold_ore;10
    - iron_ore;5
    - coal_ore;2
    - lapis_ore;12
    - diamond_ore;20
    - redstone_ore;8
    - glowing_redstone_ore;8
    - quartz_ore;10
    - mob_spawner;30
placeGain:
    - gold_ore;-10
    - iron_ore;-5
    - coal_ore;-2
    - lapis_ore;-12
    - diamond_ore;-20
    - redstone_ore;-8
    - glowing_redstone_ore;-8
    - quartz_ore;-10
    - mob_spawner;-30
smeltGain:
    - gold_ingot;3
    - iron_ingot;3
    - redstone;3
    - stone;3
    - glass;3
    - coal;5
    - brick;3
    - hard_clay;3
    - baked_potato;3
    - cooked_beef;3
    - cooked_chicken;3
    - cooked_fish;3
    - GRILLED_PORK;3
    - ink_sack;3
    - quartz;3
default: true
levelingEquation: 100*(1.16^(%level-1))

Comments

Posts Quoted:
Reply
Clear All Quotes