[RPG]Skillz v5.9 - The simple skill plugin [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by Lolmen, Apr 21, 2011.

  1. Offline

    Lolmewn

    Skillz - The Simple Skill Plugin

    Give me a reason to go update this plugin more often!
    [​IMG]

    Simple to use Skill system



    Moving to BukkitDev!
    http://dev.bukkit.org/server-mods/skillz/


    ChangeLog
    Show Spoiler

    Version 5.1:
    - Fixed some API stuff
    - Added Auto-Update (updates on disable)
    - The settings with "SkillnameEnabled = true" are now working.

    Version 5.0:

    - Added API (http://dev.bukkit.org/server-mods/skillz/pages/api/)
    - Fixed some stuff

    Version 4.5:

    - Fixed settings file not being created sometimes
    - Fixed typo (omg)
    - Started on making an API for other Skills

    Version 4.4:

    - Fixed HighScores not saving AND not loading properly.

    Version 4.3:

    - Fixed HighScores not saving properly

    Version 4.2:

    - Added HighScores!
    - Added some fancy colors.

    Version 4.0:
    - New way of handling leveling up (instead of going through a large list of checks, it now only has to check one thing.)
    - New Settings File
    - Help page is better now (/skills help)
    - Fixed other player's skills viewing
    - Totally re-written the plugin. THERE!
    - Added a convertion tool, see /skills help (You have to be OP to see it!)
    - Check when you levelup with /skills check <skillname1> <skillname2> etc.

    Version 2.2:
    - Permissions added.

    Version 2.11:
    - Fixed that stupid thingy with XP,newXP which was sent to the log every single time someone does something.

    Version 2.1:
    - MySQL Should work now. Not sure. Test it if you want, and do /skillz to convert Flat to MySQL.

    Version 2.0:
    - SQLite inserted! You HAVE to regenerate your settings file.
    - Convert flatfile to SQL with the /skillz command. Dont mind the "errors", something with "uuh, can't find the field!".
    - Some fixes I can't remember.

    Version 1.62:
    - Fixed doubledrop, you will not get the actual ore but the mineral now.
    - Fixed Acrobatics problem, you could gain HP by falling (I mean, what?!?)

    Version 1.61:
    - Small bugfix involving some player.sendMessage shizzle

    Version 1.6:
    - Possibility to add your own skills! (awesome xD)

    Version 1.5:
    - Custom Levelup Message, SKILL will be replaced with the skillname, and LEVEL with the new level.

    Version 1.4:
    - Code Cleanup

    Version 1.3:
    - Eeh, lots of things.

    Version 1.1:
    - Woodcutting added
    - Digging added
    - Swimming added
    -Change of Double Drops added
    -Some Code cleanup which really was necessary.
    Version 1:
    - Release


    Anyone interested in a new Skill or something?
    I am working on some interesting things, such as extra damage when you are a higher level.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
    dylanryan, Litt and Tang like this.
  2. Offline

    Exxter

    Great Plugin! For me it's better as McMMO because ists smarter. Thanx very much :cool:
     
  3. Offline

    lizard08

    I would like to report a bug that likely gives the double drop in it's original state. I mean if a coal block double drops, it gives the player a coal block instead of a coal piece. Same thing with stone that gives back stone instead of a cobblestone
    double drop. And grass.... And when we try to put it on the ground (the bugged double drop) it just vanishes . So it renders the plug-in completelly unsuable for the moment.

    Please fix this cause I really like this plug-in!
     
  4. Offline

    Lolmewn

    Yeah, it's known. Thnx for posting though.

    v1.62 is out!
    Fixed that double drop issue, as well as the get_hitpoints_with_Acrobatics_thingy.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  5. Offline

    spunkiie

    Lolmen:

    Nice to see you back :D
    Any update on the Custom Messages issue ? :D

    REQ: Can u please add some sort of DB storage (sqlite/mysql)?

    I Run a 300+ server, and skills flatfiles is killing my server performance :(
    Had to disable

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  6. Offline

    Lolmewn

    Yup, it's in there!
    I was working on MySQL, dont really know how it works though :p
     
  7. Offline

    spunkiie

    heh, what about SQLITE ? It's more simple
     
  8. Offline

    Lolmewn

    beeh, I will see how that works first then :p
     
  9. Offline

    lizard08

    Sorry to repost this but I got the update and the ores seem to give the right drop but dirt gives grass and stone gives stone instead of cobblestone. And they are unusable for they disapear wen put on the ground.

    But seriously thx for the rest! This mod is awesome!
     
  10. Offline

    Lolmewn

    Darn! Thnx for posting, I think I forgot that.
     
  11. Offline

    spunkiie

    I keep checking this topic every hour or something :D

    Can't wait for next version
     
  12. Offline

    Lolmewn

    Im waiting with implementing SQL, since I will have a small tutorial waiting for me in maybe today. <-- wow, that was bad english.
    What I ment of course, was that I wont do that yet, cuz I dont know how, waiting for a super tutorial to come out (someone is making one :p)
     
  13. Offline

    spunkiie

    Sure, no problem/hurry with SQL thing. I'm still waiting for new stuff you code man :D
     
  14. Offline

    VGLink

    I would install it on my server if you would implent permissions in it ;D
     
  15. Offline

    Lolmewn

    but whatfor? For getting XP or for doubledrop orwhat? ;)
     
  16. Offline

    geloum

    Dear, first thanks for your great, simple addon.
    Can I ask you something, I just installed you plugin and I was wondering if levelling is getting the players stronger in each domain ? I mean if they level up for sworfight, does it make them hit harder ?

    Also, can I set a maximum level ?

    And also, is it possible for you to implement reward system ? For example, a player reach level 10 then get a full armor of low quality, on level 20 a full armor of better quality... Etc.

    Or is it too complicated and does that kinda of modding needs a SQL database shit ?


    Good day :)
     
  17. Offline

    Lolmewn

    Firstly, If you levelup at swords, you get a higher change of hitting a person with a "critical strike", which means way more damage.

    The max. level is 100.

    If it works with my other plugin, I will add it, yes.

    Working on SQL, it's kinda hard though.
     
  18. Offline

    geloum

    I didn't understand what you meant here, are you working on an implementation of giving stuff to players when they reach levels caps or do you already have an addon who does that ?

    And for SQL, fuck that shit, I hate complicated plugins, keep it simple bro !
     
  19. Offline

    Lolmewn

    I am working on something similar on my other plugin, Repair. If it works there, I will add it here aswell.
    And for SQL: It's optional ;)
     
  20. Offline

    VGLink

    I'm using mcMMO and it would be usefull to give permission to sertain classes to use sertain skills or tot level up sertain skills :D
     
  21. Offline

    Lolmewn

    Oh, like that. Well, ok then. But I have to rewrite some code for it (not too big deal though, should be quite simple)
     
  22. Offline

    VGLink

    Yeah thx :D you are the Best :D
     
  23. Offline

    Deses

    is there a way to customize the exp needed to get a level up? it would be nice i think
     
  24. Offline

    Lolmewn

    Not yet, Might add later.
     
  25. Offline

    Bordafan

    Hi!

    I get these errors always, after running the server for a quite small period of time:

    Code:
    2011-05-18 22:02:46 [SEVERE] java.io.FileNotFoundException: plugins/Skillz/users/Player.txt (Too many open files)
    2011-05-18 22:02:46 [SEVERE]     at java.io.FileInputStream.open(Native Method)
    2011-05-18 22:02:46 [SEVERE]     at java.io.FileInputStream.<init>(FileInputStream.java:137)
    2011-05-18 22:02:46 [SEVERE]     at java.io.FileInputStream.<init>(FileInputStream.java:96)
    2011-05-18 22:02:46 [SEVERE]     at nl.lolmen.Skillz.SkillzGet.getLevel(SkillzGet.java:52)
    2011-05-18 22:02:46 [SEVERE]     at nl.lolmen.Skillz.SkillzBlockListener.onBlockBreak(SkillzBlockListener.java:109)
    2011-05-18 22:02:46 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.java:432)
    2011-05-18 22:02:46 [SEVERE]     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    2011-05-18 22:02:46 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
    2011-05-18 22:02:46 [SEVERE]     at net.minecraft.server.ItemInWorldManager.d(ItemInWorldManager.java:156)
    2011-05-18 22:02:46 [SEVERE]     at net.minecraft.server.ItemInWorldManager.b(ItemInWorldManager.java:118)
    2011-05-18 22:02:46 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:441)
    2011-05-18 22:02:46 [SEVERE]     at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    2011-05-18 22:02:46 [SEVERE]     at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    2011-05-18 22:02:46 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    2011-05-18 22:02:46 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    2011-05-18 22:02:46 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
    2011-05-18 22:02:46 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    2011-05-18 22:02:46 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    2011-05-18 22:02:46 [SEVERE] Could not pass event BLOCK_BREAK to Skillz
    java.lang.NullPointerException
        at nl.lolmen.Skillz.SkillzBlockListener.onBlockBreak(SkillzBlockListener.java:27)
        at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.java:432)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
        at net.minecraft.server.ItemInWorldManager.d(ItemInWorldManager.java:156)
        at net.minecraft.server.ItemInWorldManager.b(ItemInWorldManager.java:118)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:441)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
        2011-05-18 22:02:46 [SEVERE] Could not pass event BLOCK_BREAK to Skillz
    java.lang.NullPointerException
        at nl.lolmen.Skillz.SkillzBlockListener.onBlockBreak(SkillzBlockListener.java:27)
        at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.java:432)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
        at net.minecraft.server.ItemInWorldManager.d(ItemInWorldManager.java:156)
        at net.minecraft.server.ItemInWorldManager.b(ItemInWorldManager.java:118)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:441)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    2011-05-18 22:02:47 [SEVERE] Could not pass event BLOCK_BREAK to Skillz
    java.lang.NullPointerException
        at nl.lolmen.Skillz.SkillzBlockListener.onBlockBreak(SkillzBlockListener.java:27)
        at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.java:432)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
        at net.minecraft.server.ItemInWorldManager.d(ItemInWorldManager.java:156)
        at net.minecraft.server.ItemInWorldManager.b(ItemInWorldManager.java:118)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:441)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-18 22:02:47 [SEVERE] Could not pass event BLOCK_BREAK to Skillz
    java.lang.NullPointerException
        at nl.lolmen.Skillz.SkillzBlockListener.onBlockBreak(SkillzBlockListener.java:27)
        at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.java:432)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
        at net.minecraft.server.ItemInWorldManager.d(ItemInWorldManager.java:156)
        at net.minecraft.server.ItemInWorldManager.b(ItemInWorldManager.java:118)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:441)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-18 22:02:47 [SEVERE] net.minecraft.server.MinecraftException: Failed to check session lock, aborting
    2011-05-18 22:02:47 [SEVERE]     at net.minecraft.server.PlayerNBTManager.b(SourceFile:73)
    2011-05-18 22:02:47 [SEVERE]     at net.minecraft.server.World.k(World.java:1975)
    2011-05-18 22:02:47 [SEVERE]     at net.minecraft.server.World.w(World.java:153)
    2011-05-18 22:02:47 [SEVERE]     at net.minecraft.server.World.save(World.java:143)
    2011-05-18 22:02:47 [SEVERE]     at net.minecraft.server.World.doTick(World.java:1463)
    2011-05-18 22:02:47 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:363)
    2011-05-18 22:02:47 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    2011-05-18 22:02:47 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    2011-05-18 22:02:47 [SEVERE] Unexpected exception
    net.minecraft.server.MinecraftException: Failed to check session lock, aborting
        at net.minecraft.server.PlayerNBTManager.b(SourceFile:73)
        at net.minecraft.server.World.k(World.java:1975)
        at net.minecraft.server.World.w(World.java:153)
        at net.minecraft.server.World.save(World.java:143)
        at net.minecraft.server.World.doTick(World.java:1463)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:363)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    2011-05-18 22:03:23 [SEVERE] java.net.SocketException: Too many open files
    2011-05-18 22:03:23 [SEVERE]     at java.net.PlainSocketImpl.socketAccept(Native Method)
    2011-05-18 22:03:23 [SEVERE]     at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:375)
    2011-05-18 22:03:23 [SEVERE]     at java.net.ServerSocket.implAccept(ServerSocket.java:470)
    2011-05-18 22:03:23 [SEVERE]     at java.net.ServerSocket.accept(ServerSocket.java:438)
    2011-05-18 22:03:23 [SEVERE]     at net.minecraft.server.NetworkAcceptThread.run(SourceFile:36)
    After this, the server freezes completely. Sometimes the last error ("2011-05-18 22:03:23 [SEVERE] java.net.SocketException: Too many open files") is reported hundreds of times, sometimes just once.

    I already increased the open files limit system wide, but it didn't help.
    If i check which files are open by java, i see every users file is open a bunch of times.
    And by "a bunch of" i mean hundreds, or even thousands. I didn't count them...

    Seems like you forgot to close the file streams somewhere, but without seeing the source that's all i can guess.

    Btw is this an open source project?
    If it is, where can we find the source?
    If not, why?
    Seriously, bukkit plugins supposed to be open source. If this was one of the most complicated plugins i would say it's ok, but it's not :)
     
  26. Offline

    Lolmewn

    I will try and fix that error. Itz not yet opensource
     
    Bordafan likes this.
  27. Offline

    Lolmewn

    Working on SQLLite, you might want to download it when it comes out =D

    Ooh, someone likes that :p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
    Bordafan likes this.
  28. Offline

    Bordafan

    Working for the community, making nice plugins and fixing bugs, should always be "liked" :)
     
  29. Offline

    Lolmewn

    I agree, a lot of ppl forget it way too many times.
     
  30. Offline

    Lirycs78

    it's normal for a player, once arrived in digging to 29500 level changes from 24 to 53 ? u_u
     
  31. Offline

    Lolmewn

    eeh, what? Not really. Let me just check that.
    EDIT: Fixed, will be released in v2.0
     

Share This Page