[ADMN/RPG] ClassRanks v0.2.1.2: Manage class ranked groups [1337]

Discussion in 'Inactive/Unsupported Plugins' started by slipcor, Aug 20, 2011.

  1. Offline

    slipcor

    ClassRanks - Manage permission groups easier

    Version: v0.2.1.2

    I have moved to dev.bukkit.org

    No more download links, because the latest version supports all mayor perms systems
     
  2. Offline

    slipcor

    The next version will feature a bPermissionsbukkit version :)

    Updating the thread to 0.1.3.4 atm:

    Fix: cost parsing
    Fix: class change announcement
    Cleanup
     
  3. Offline

    HolyBacon

    can you make people moderator and builders with this?, really sick of griefers coming randomly
     
  4. Offline

    slipcor

    Of course, you just have a Class "Staff" with the ranks "Moderator" and "Admin" maybe. You just have to make sure people do NOT have permission to choose classes then - I might add a class restriction so like you have:

    Class Builder - choosable
    Class Staff - not choosable..

    Well I would recommend the following setup:

    A) Have the normal ppl in the default group. No building, no real permissions (without building theres not much to do anyways)
    Allow noone but the Moderator group to rank anyone up or down or to choose class

    B) Have the following Permissions Groups:

    - Moderators => should be clear
    - Admins => also

    - Builder => get it?
    - EpicBuilder => for more permissions like /give or whatever

    ----------------

    You then setup your classranks like that:

    /classadmin add class Staff Moderators Moderator $a
    /classadmin add rank Staff Admins Administrator $c

    /classadmin add class Builders Builder Builder $f
    /classadmin add rank Builders EpicBuilder Builder_II $b

    This will setup 2 classes where you can add ppl alike:

    /class add slipcor Staff

    I would be mod then

    /class rankup slipcor

    Now I would be admin - but it will tell you ;)

    -------------

    Same with the other class:

    /class add slipcor Builder

    And I can build!

    /class rankup slipcor

    To give me more access ;)
     
  5. Offline

    slipcor

    Version 0.1.3.5 features a bPermissions version!
     
  6. after executing /class admin
    Code:
    17:53:39 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'class' in plugin ClassRanks v0.1.3.5
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:41)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:755)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:720)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:713)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:91)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.NullPointerException
            at praxis.slipcor.classranks.CRClasses.parseCommand(CRClasses.java:499)
            at praxis.slipcor.classranks.ClassRanks.onCommand(ClassRanks.java:97)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
            ... 12 more
    
    class admin exist, created via. Classranks.
    So, what's wrong? :)
     
  7. Offline

    slipcor

    Im now assuming you have ClassRanks (Permissions) version 0.1.4.0 - if you have a different version, you need to tell me :)

    It seems you don't have the cost specified correctly. Doesn't it warn you on startup that a value was not recognized? Please include your config.yml in a spoiler or via pastebin. If you just deleted the cost, please reset them to '0' :)
     
  8. Offline

    ProjectInfinity

    Would it be possible to have some sort of timer on this? Say I want people to be able to change class every now and then but not more than X times in X amount of time.
     
  9. Offline

    slipcor

    Yeah, I'm putting this to the todo list :) (optional for others that do no want this)
     
  10. Offline

    jazzman170

    When i try to get my first rank i type /class Trader and it says it doenst exist. I also try /class Business and same issue. I have the default configs and content.yml so im not too sure why its doing this. i also have the permissions for permissionsbukkit/groups setup correctly.

    Also zero errors anywhere. heres the msg i get:

    The class you have entered does not exist!

    Any ideas?
     
  11. Offline

    slipcor

    Did you say /class dbload already?

    You may choose between /class warrior and /class trader then - as Trader didnt work, Im sure you did not add that Trader to the database (by classadmin or dbload)
     
  12. Offline

    jazzman170

    oh haha i must have missed that part. Thanks it works now :D

    update: this is what happend when i typed /class Trader


    14:26:51 [INFO] [PLAYER_COMMAND] jazzman170: /give jazz redstone
    14:26:53 [INFO] [PLAYER_COMMAND] jazzman170: /give jazz coal
    14:27:10 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'clas
    s' in plugin ClassRanks v0.1.4.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    9)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    52)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:737)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)

    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java
    :478)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler
    .getUserObject(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissions/User
    ;
    at praxis.slipcor.classranks.CRClasses.classAdd(CRClasses.java:257)
    at praxis.slipcor.classranks.CRClasses.parseCommand(CRClasses.java:546)
    at praxis.slipcor.classranks.ClassRanks.onCommand(ClassRanks.java:97)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 13 more
    >

    sorry about no spoiler tag im not sure how to do that.
     
  13. Offline

    slipcor

    okay, are you using Permissions 3.1.5 ? If yes, it does not seem to work, if no, what are you using?
     
  14. Offline

    jazzman170

    sorry for the late reply, i was working on residences. I have just updated to the 1.2 version of permissionsbukkit, but at the time of the error i was using v1.1 After these changes im still getting the same error :(
     
  15. Offline

    slipcor

  16. Offline

    jazzman170

    Awsome it works now :D although ran into another problem. When i choose the class of Trader it says im a trader but when i do /class get it says i dont belong to any group. Also im able to type /class Trader and/or /class Warrior as many times as i want, should it only let me choose one and only one unless i downgrade back to peasant/default?

    Also when i try to upgrade my rank from a Trader to Trader 2 it says player jazzman170 has no class.

    Weird lol.
     
  17. Offline

    slipcor

    Well all those errors refer to one problem: The class is not being set properly. Do you get any sql warnings or errors after trying to commit that command?

    Check the permission Groups, they are case sensitive!
     
  18. Offline

    jazzman170

    heh, is it all sapposed to us a sql database? cause i dont use that LoL
     
  19. Offline

    slipcor

    No, it's working with a flatfile system, too. That would be sqlite - it SHOULD work automatically - at least it did on my server :) Check for errors containing "sqlite". Can you join #Praxis on irc.esper.net ? If you do not know what to do, click here
     
  20. Okey i handled my Problem (described much more above) with easily setting iconomy on.
    so it's absolutly necessary and may should be add to "dependencies".

    Now i'm having further Problems -
    I'm using MySQL to Store Class and Rank.
    I added a class called "admin".

    When i type: /class {whatever} it say's to me "You alreade are in the Class admin". (so far so good..)
    When i type /class get BigEll89 it say's to me "Player BigEll89 is in group nulladmin in world stadt.

    So why "nulladmin" instead of "admin" ?!
    the Group admin exist in my PermissionsBukkit file, and i added myself to this group < may be importand, dunno.

    I try'd playing around with this stuff and so i removed an Admin off his group "/perm removegroup..." and tryd to set his class wie ClassRankPB - Just worked halfway.
    Added him to "admin" in ClassRankPB - but not to PermissionsBukkit..
    And again, it say's "nulladmin" instead of "admin".

    May you help me?
     
  21. Offline

    slipcor

    1) iConomy - that seems to need a fix, Ill look into that!
    2) null -> Im quite sure thats a wrong setting of the color field. Check the color column in your database, it should only contain numbers between 0 and 15 :)
     
  22. Okey, 248 doesn't seems to be good in there =P now this works.
    It's showing the display name i added.
    Permname set to "admin". (as it is called in permissionsBukkit).

    Adding someone to this class via /class add
    only adds them to admin in ClassRank - testing it iwth /perm player groups don't show this added class/group :eek:
    shouldnt it?

    PS:
    /class
    Show's helplist- but:
    /class [add/remove] {username} {world} - misses a {classname}, doesnt it?
     
  23. Offline

    slipcor

    oh, of course it should. Do you get any errors with that command, like "are you sure youre doing that right"?

    (talking about console errors eventually)

    @PS - no, there is only one class you can have :) so if you want to remove, you dont have to specify what class you get removed - that information is fetched by the plugin
     
  24. ah nice.
    Ingame says "XXX is now in Group YYY" and console say: "no permission" :p
    so it's Bukkit Error - not able to handle * for now i'll add every singular permission node and test again.

    PS:
    /class add/remove {username} {world}

    This requires a "classname" when trying to add some1 ELSE to a class.
    If i just enter /class add XYX it says "Player BigEll89 already is in the class"
    (w/o listening to my entry XYX...)
    So it's require a classname, i suggest.


    gimme around 5min to try to add the permission nodes step by step =P
     
  25. Offline

    slipcor

    Ooooh, gotcha! This will be fixed in the next version, thanks :)
     
  26. so back to my main problem.
    It is like above.
    Says "all fine" but in console "No Permission to do that".
    Having every single permission node now and cant determine, whether it's ClassRank or PermissionsBukkit which creates this Error - Fact is, i can setgroup via PermissionsBukkit - but can't set a class/group via ClassRank :/
     
  27. Offline

    slipcor

    Please download the new version :) I had some stupid errors in there :)

    okay, what versions of PermissionsBukkit do you have? On a vanilla (CB) server, it works fine. Can you pastebin your PermissionsBukkit/config.yml ?
     
  28. okey, here we go:
    CraftBukkit: #1149
    PermissionsBukkit Version: v1.2k
    Pastebin of PermissionsBukkit config.yml: http://pastebin.com/Ny743yFH
     
  29. Offline

    slipcor

    Well atm, only admins can rank themselves and others around. So if you ever manage to get admin, you say /rankdown, you are default/user and have no permissions :D

    Or do you mean YOU as admin get the error no permissions? Join IRC?
     
  30. dont have any irc adress to join =P
    so
    i as admin get console output "no permission to do that" when trying to set some1else' class. :/
     
  31. Offline

    slipcor

    #Praxis on irc.esper.net or click here

    that's very strange :/ we might have to debug that a bit...
     

Share This Page