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
@mrchasez
If you get build #180 (pretty stable), you'll have MySQL. Isn't that nice? :D
As for the feb 1.2.5: It just means the build from February is compatible with 1.2.5. I use this plugin on my own server, so if it breaks I instantly try to fix it.
@Lolmewn
Can we get SQL support, or H2? This performs a lot worse then mcmmo because this uses flatfile and we have so many players. I would like to use this, because mcmmo is so intensive, but the flatfile logging makes this unsable ;( How can you have a build from February be 1.2.5?
Thanks anyway
@aahildt
It gets shown on startup. To get the latest dev version: http://77.251.20.228:8080/job/Skillz/180/
@Lolmewn
thanks, and how would i check the dev version i have if i am not an administrator?
@aahildt
Depends on the version you have. If you have the latest version, it won't. But if you have DEV version #180, it will. And even better, it's configurable ;) (Oh, and in that build, MySQL works too!)
does this actually give you special abilities or for skills like unarmed, does it make your hand to hand fighting do more and more damage?
@mrcheesete0
It works with the new builds.
is there a download for any files compatible with the new API? All your files say 1.1-R4 or earlier, and bukkit says plugins broke at 1.1-R7 and later. :(
Nyan.
@mindstormguy1
I see. I will make this a configurable option.
@mrchasez
That's weird.. I use it on my own server as well. I might be able to thread the XP giving, that could speed stuff up quite a lot. What you can try right now is a dev-build, the latest one has working MySQL (NOTE: Not sure if the /skills convert works, better backup your data!)
For whatever reason, This plugin cause's lag on our server.
Which is weird because of how powerful our dedi is.
Hey there! I REALLY like this plugin, it's a really great way to allow my players to earn in-game money. However, one thing that needs to be changed, and I think it would be a simple fix: There needs to be an option to prevent players in creative mode from earning Xp and leveling up. Because when you are building in creative you can still get XP for mining and digging and combat and stuff, and you shouldnt be able to. Please consider this important change, it's the only thing I dont love about this plugin. THanks! -M1_
@mrchasez
It listens to some events (block break, player login, and some more) which (like all plugins) takes some time to process. However, Instead of constantly reading from the settings and applying them, I do quite some processing on startup. Basically, it makes it faster. Also, the /skills command is threaded, meaning that when it's being ran other processes aren't affected by this.
As for the color, I'm uncertain and it probably won't work, but try adding &4 for example, or that other special character which isn't on my keyboard O.o (You know, the 2 S hooking into each other).
Uhm, Does this work on 1.2.3-R0.3?
EDIT: It works for 0.1, haven't tested others
Also, Can we change Level up message colour yet?
@Lolmewn
What kind of performance hit does this give. We have tons of ram and CPU power, but i am curious
Please can you tell me, where I can found "help" command? In what file? In what line?
I can't find something like "help"....
@BeeTas
Mostly in the Skillz.java class, but there's also some in the SkillCommand.java class.
Yes, in source i can't find text like: "Shows your stats", "Help", "Commands". Where I can find this text?
@BeeTas
I'm not sure what you mean. Do you mean like a language file?