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
@Lolmewn
switched to mysql, seems to be working fine now :] Thanks
@owenftw
I recommend using MySQL anyway, if you have a big server, a LOT of files will be generated.
@Lolmewn
flatfile
@owenftw
Using flatfile or MySQL?
Had to remove this plugin.. Skills kept on resetting meaning people could get easy rewards.
I just downloaded citizens 2, and I'm now getting this error:
19:56:56 [SEVERE] Could not pass event EntityDamageEvent to Skillz vjenkins-Skillz-219 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.EntityLiving.y(EntityLiving.java:310) at net.minecraft.server.Entity.j_(Entity.java:228) at net.minecraft.server.EntityLiving.j_(EntityLiving.java:474) at net.minecraft.server.EntityMonster.j_(EntityMonster.java:24) at net.minecraft.server.EntityZombie.j_(EntityZombie.java:121) at net.minecraft.server.World.entityJoinedWorld(World.java:1278) at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:526) at net.minecraft.server.World.playerJoinedWorld(World.java:1260) at net.minecraft.server.World.tickEntities(World.java:1159) at net.minecraft.server.WorldServer.tickEntities(WorldServer.java:439) at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:556) at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:214) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:485) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:418) at net.minecraft.server.ThreadServerApplication.run(SourceFile:818) Caused by: java.lang.NoClassDefFoundError: net/citizensnpcs/api/CitizensManager at nl.lolmen.Skills.SkillEntityListener.onEntityDamage(SkillEntityListener.java:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339)
It doesn't load when Citizens 2 is activated.
@mrchasez
Still haven't come around to doing that, once they both work with 1.4 and my damned school stops giving me so much work to do, and I've got my server under control, I will see which is 'better'.
@Lolmewn
Did you ever get around to comparing Ptweaks and Nolagg lol. I am still interested on how they compare.
@Mayhem777
My first reaction would be no, however development is going reeeeally slowly. I'm thinking about rewriting it (again), as I can't find any code anymore, and it's all really messy too. That's basically what's going on. And of course, I have to find time to do this. School and stuff...
Is this project inactive?
It would be nice to have a way to disable ALL perks provided by the plugin. I'm just looking for something that allows people to just have skills that level up themselves as they progress. Thanks.
Is it incompatible with Citzens? I got "[servere] could not pass event entitydamagebyblockevent to skillz" message repeatedly, so i can't see nothing more in the console. I'll keep this one, but i want to know with there is a solution.
But.. when i level up in one skill, what changes in it? Or it's just to say that i use that skill (simbolic)?
Edit:
And there is a way to add a cap level?
Hating mcmmo... let's give this a try! It seems cool and easy and not buggy.
Only a HUGE question: THE LOCALIZATION! What about the language file or setting? It's cool to have the name of the skill and the other advise in our language.
Hello, this plugin is very nice !
But about permissions skills, Can you precises if for Acrobatics you must type acrobatics or Swords Combat => swordscombat / swords_combat.
For me, it seems not works...
And It could be cool to add a console command for add experience in a competence ! For exemple, the plugin campaign allow admins to use a command console as event. For exemple, when players finish a quest execute as console : "skills addxp %player% 50 archery".
@Lolmewn
and how can i know the right xp? cuz every time some one buy vip, he wins 50 lvls in every skill... and u can explain again wath folder i need go to change tha skills names? is in plugin-skillz.jar or plugin-skillz ?
the problem about the xp bar i said was becouse i add 1000 lvls, but non xp, so the xp bar transforme in a BIG xp bar lol... thanks
@andregcarim
You should stop the server, THEN edit the file, then start it again. Level 1000 is possible, sure, and shouldn't close your game. Although, if the wrong XP was added, this might cause errors. The XP bar gives an idea of how far you are till the next level.
and another question, i put me in lvl 1000 just for test to see what heppens. but when i use /skills in game the game close... u know why? what is the high lvl of the skills? and when u pass some lvls your xp bar in /skills be bigger? or the same size? just need more xp to complete? (idk if u understand what i try to say =] sry my english is not so good)
@Lolmewn
but when i try to change tha name of the skills, and reload the server, nathing happens, and when i back to skills.yml folder, its back to the original config...
@andregcarim
Yep. In plugins/Skillz, you'll find a .yml file. I think it was Skills.yml, or Settings.yml. In there, edit values.