Skillz
Stats - made by Lolmewn
Description
This plugin adds Skills to your server. With skills, the player has a goal to work towards to, and get rewarded for playing actively. You can also use these skills as requirement for a rank-up, for example. Gaining levels can also make you more powerful, but not overpowered.
Commands and permissions
Command | Permission node | Description |
/skills | skillz.skills | See your skill levels |
/skills page <pagenumber> | skillz.skills | View other pages of your skills (Not yet implemented) |
/skills <Player> | skillz.skills.other | Shows skills of another player (Not yet implemented) |
/skills check <skillname> | skillz.check | Checks when you level up (Not yet implemented) |
/skills top | View the top players for every skill (Not yet implemented) | |
/skills reset | skillz.reset.self | Reset your skills (Not yet implemented) |
/skills reset <Player1> <Player2> etc | skillz.reset.other | Reset other player's skills (Not yet implemented) |
Default Skills
There are a couple of basic skills. To give an idea of what they do, I'll take the Mining skill as example and walk you through the config.
#name of the skill name: Mining #description of the skill, will be used later for more in-depth commands. description: Level up your mining skill to unlock new features, like breaking new blocks and using new tools. #default XP-gain multiplier multiplier: 1 #whether or not this skill is enabled at all enabled: true #send a message to everyone that a player has leveled up. You can change the message below broadcastLevelup: true #blocks used by this skill, either for gaining XP, blocking until a certain level, or blocking items until a certain level. blocks: #the stone block gets associated with this skill. You can find a list with all possible itemnames here: https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/browse/src/main/java/org/bukkit/Material.java#84 STONE: # get 1 XP for breaking a stone block. You level up when your XP is higher than level^2*10 (so to get level 3, you need 40 xp) xp: 1 COBBLESTONE: xp: 0.5 #you can only start mining cobblestone from Mining level 5. level: 5 tool_level: #only for breaking blocks #you can't use a Diamond pickaxe until you are level 5 DIAMOND_PICKAXE: 5 #Special abilities that randomly happen, usually with a higher chance of happening as the player gets to a higher level. special: #get double drops every now and then doubleDrops: #whether or not this special is enabled enabled: true #what the chance is of getting a double drop, in percentages (from 0-100) chance: "%level%/3" #when a double drop happens, send the player a message notifyPlayer: true doubleXp: enabled: true chance: "%level%" notifyPlayer: false messages: levelup: - '&3Congratulations %player%! You leveled up your %name% skill.' - '&6Your skill level is now %newlevel%' broadcast: - '&3%player% leveled up his %name% skill! He is now level %newlevel%' needsHigherLevelBlock: "You can't break this block! %name% level required: %level%" needsHigherLevelTool: "You can't use this tool yet! %name% level required: %level%" itemsDroppedOnGround: "Your inventory was full, causing your item rewards to be dropped on the ground!" doubleDrop: "Your block had a double drop! How lucky you are." doubleXp: "Your block dropped double XP! How lucky you are." #rewards for leveling up rewards: #some items you get. Separated by ; for multiple items. 89,4 means 4 glowstone (will use material name in a newer version), 17,2,1 means 2 wood with data-type 1 (so Spruce wood). items: 89,4;17,2,1 #money you get for leveling up. Nice incentive for working towards a levelup. money: 100
Basic Skills
There are a few basic skills you can train:
Name | How to gain XP |
---|---|
Acrobatics | Fall and get hurt |
Archery | Hit players or animals with your arrows |
Digging | Dig dirt, sand, grass or gravel |
Mining | Mine blocks, get XP |
Swimming | Suffocate in water |
Swords Combat | Hit players or animals with your sword |
Woodcutting | Chop trees |
A Video about it
Source
https://gitlab.com/lolmewn/Skillz
API
Hook into the API to get player levels, XP, add new Skills, and more! Click here to see the API
@mrcheesete0
I think I found it, try build #181 from http://77.251.20.228:8080/
@mrchasez
Yea, I'm going to use a new saving method soon. Currently it just opens the file (takes time), writes to it (takes time), and saves it (takes time) on every block that gets broken. And the whole server has to wait for it before continuing. MySQL is way faster (however, still takes time, improving soon).
For the jumping, it's the Acrobatics Skill. You can set the damage-reduction in the settings, and how do you mean "They jump smoothly no matter what"?
@Lolmewn
Flatfile (Normal) = Most laggy plugin i have ever used SQL = No lag at all = Good Plugin
Also, No matter what. When someone jumps, They "Jump smoothly" no matter what. No matter what skill level.
Why is this? Jumping does hardly anything now.
Please note: MySQL works (in build #180), SQLite doesn't. I'm not quite sure what happens if you put SQL to true, but I recommend just not doing it.
@mrcheesete0
When i do, It says "That user has no file" or something Because they dont.... its in the SQL
http://pastie.org/3817667
http://pastie.org/3817735
@mrchasez
If you are using #180, there's a command: /skills reset <player> Permission node is skillz.reset.other (skillz.reset.self for /skills reset)
@Lolmewn
How do i reset someones skills when using SQL?
@Lolmewn
I have submitted a ticket
@mrcheesete0
Can you send me your config through pastebin? And permissions file
any idea why users without the node are still leveling up?
@BeeTas
Seems like WorldGuard doesn't do things the normal way. I'll try to fix it, if you could post a ticket about it :) Thanks for the reply!
Dear Lolmewn,
I'm using WorldGuard with Skillz, in server.properties PVP is allowed, but in worlguard PVP in some regions are denied, but skillz anyway calculate hits and combat skills.
How I can prevent it?
@Lolmewn
I did this, and I even added "-skillz.*" to Default, and they still were leveling up.
@pokeinstein
Hell no, I do everything on my own. I'm not going to steal (even if it isn't stealing) someone's code and then say "I completely wrote this plugin". Cuz I didn't if I'd do that.
Since McMmo is opensource would it be tooo bad if you copied a little from them just the pet summoning treasure from digging and fishing and the damage bonuses
@mrchasez
I just found out you can already do this. Just add this character: § and the color you want (for example, §2 gives green)
@mrcheesete0
Set it to use permissions for every skill, then just add the perms to the donator group.
@Lolmewn
I would really love to be able to have colour in the Level Up messages. Anyway this can be added soon?
/facedesk at making the plugin default to everyone.
I had to disable your plugin until I can figure out how to stop it leveling non-donators. I added this as a donor-perk plugin, but I can't figure out how to disable it defaulting to all users.
any suggestions?
@Lolmewn
Any Update coming soon? Also, Your sure this performs better then mcmmo? Because we have a Xeon 1270/16GB Ram /200GB SSD and mcmmo dents our performance a lot, however we have quite a few big plugins.
Will this require to log data to a personal SQL like LogBlock, or will it just use a Database?
Where is Build 180?