[GEN/MECH/ECON] OKCheckPoints v1.3.5 - Checkpoints with Economy/Permissions support [1.0.0-R1]

Discussion in 'Inactive/Unsupported Plugins' started by Kalman Olah, Jul 12, 2011.

  1. Offline

    Kalman Olah

    OCP - OKCheckPoints
    by Kalman Olah​
    Latest version: 1.3.5 ( Download )​
    Would you like to buy me a drink? some useless stuff from Amazon? a car?​
    [​IMG]

    What is OKCheckPoints?
    OKCheckPoints is a 'checkpoint' plugin for Bukkit. OKCheckPoints comes with fully configurable messages(including colour codes and some variables), checkpoint costs, an auto-updater and support for all major Economy plugins (using Register) and Permissions, PermissionsEx, GroupManager and Bukkit's permissions.​
    What does OKCheckPoints do?
    Simply put, OKCheckPoints allows you to save your character's location(using a command, or by right-clicking a sign) for a configurable price(Items or Economy money). If a player with a checkpoint dies, he respawns at his checkpoint, and may or may not keep his inventory(depending on your configuration).​
    How do I set up OKCheckPoints?
    Move it to your plugins/ directory.​
    How do I configure OKCheckPoints?
    When you run OKCheckPoints for the first time, a configuration file called 'config.yml' will be generated. In here, you can edit all of the messages/costs/etc... until you're satisfied with them.​
    Note: Available colour codes are &1 - &9 and &a - &f. Available variables are %i for item name/currency name and %a for item/money amount. For the teleportation messages, the variable %t(Target of teleportation) is available.​
    How do I use OKCheckPoints?
    To create a CheckPoint using a command, simply use the /checkpoint or /cp command.​
    To create a CheckPoint using a sign, simply left-click the CheckPoint sign.​
    To create a CheckPoint sign, simply place a sign with "[CheckPoint]" on the first line, and optionally specify a number on the second line if you would like CheckPoints from that sign to have a custom cost, or write "free" on the second line if you would like CheckPoints from that sign to be free.​
    Permissions nodes:​
    okcheckpoints.create.command
    Allows you to create a CheckPoint by using the /cp and /checkpoint commands.​
    okcheckpoints.create.sign
    Allows you to create a CheckPoint by left-clicking a CheckPoint sign.​
    okcheckpoints.clear
    Allows you to clear your CheckPoints using the /cp clear and /checkpoint clear commands.​
    okcheckpoints.place
    Allows you to place a CheckPoint sign.​
    okcheckpoints.break
    Allows you to destroy a CheckPoint sign.​
    okcheckpoints.free
    Allows you to ignore the cost of a CheckPoint.​
    okcheckpoints.teleport
    Allows you to use the /checkpoint tp <name> and /cp tp <name> commands.​
    okcheckpoints.reload
    Allows you to use the /checkpoint reload and /cp reload commands.​
    Commands:​
    /checkpoint or /cp
    Creates a CheckPoint at your current location. Requires 'okcheckpoints.create.command' to use.​
    /checkpoint clear or /cp clear
    Clears your CheckPoints. Requires 'okcheckpoints.clear' to use.​
    /checkpoint tp <player's name> or /cp tp <player's name>
    Teleports you to a player's CheckPoint, if that player has one set. Requires 'okcheckpoints.teleport' to use.​
    /checkpoint reload or /cp reload
    Reloads the OKCheckPoints configuration. Requires 'okcheckpoints.reload' to use.​
    Note: Can be used from the console.​
    Credits & Thanks:
    This plugin uses Register, an amazing AIO Economy API by nijikokun, parts of Tagette's extremely helpful and useful Plugin Template, and alta189's awesome SQL Library.​
    Special thanks go out to captainawesome7, who helped me get inventory saving working properly.​
    Known Issues:
    None(currently).​
    Misc. info:
    -If a player creates a CheckPoint, dies, and does not respawn before the server restarts, he will lose his items anyway.​
    -Players without the "checkpoints.break" Permissions node can't destroy CheckPoint signs.​
    -TNT(explosions) can't destroy CheckPoint signs.​
    -Gravity(e.g.: Removing the block under the sign) can't destroy CheckPoint signs.​
    Changelog:
    Version 1.3.5
    • Changed teleport permission node to "okcheckpoints.teleport".
    Version 1.3.4
    • Updated to use the new configuration API.
    Older versions (open)

    Version 1.3.3
    • Minor update to permissions checking functions.
    Version 1.3.2
    • Fixed compatability issues with iConomy 6.
    Version 1.3.1
    • Attempted fix for CommandBook /home conflict.
    Version 1.3.0
    • Added to the "OK" suite(see signature).
    • Added support for PermissionsEx, Bukkit's permissions, GroupManager, Permissions 3.1.x.
    • Changed name.
    • Changed permissions nodes to match name.
    Version 1.2.1
    • Auto-updater bugfix.
    Version 1.2.0
    • You can now create CheckPoint signs. Players can left-click these signs to create a CheckPoint AT THE PRICE SET ON THE SIGN. Aw yeah. CheckPoint signs are protected from the laws of physics, players and explosions. I hope.
    Version 1.1.0​
    • Removed all sign-related stuff. CheckPoints is now strictly command-based, until I get enough requests to add something else.
    • Added a teleport command that allows you to teleport to another player's checkpoint.
      Usage: /cp tp <name> or /checkpoint tp <name>. Permissions node: checkpoints.teleport.
    Version 1.0.0​
    • Released.


    Example config.yml (open)
    Code:
    #Keep inventory when you die and a CheckPoint is used?
    keep-inventory-on-checkpoint-usage: 'true'
    economy:
    #Enable economy plugin? Will override items.
        enable-economy-plugin: 'false'
    #How much should a CheckPoint cost?
        economy-cost: '500'
    #The custom name of your currency.
        economy-currency-name: coins
    items:
    #The item ID of the item you want to purchase CheckPoints with.
        consumed-item-id: '41'
    #The custom name of the item you want to purchase CheckPoints with
        consumed-item-name: Gold Block
    #Amount of items to take from player...
        consumed-item-amount: '1'
    messages:
    #Self-explanatory...hopefully. Colour codes are &1 - &9 and &a - &f. Variables are %a for amount,
    #%i for item name or currency name, %t for teleport target.
        not-enough-items-message: '&cYou need atleast &f%a %i &cto create a CheckPoint!'
        not-enough-econ-money-message: '&cYou need &f%a &c%i to create a CheckPoint!'
        signs-not-enough-items-message: '&cYou don''t have enough &f%i&c to create a CheckPoint!'
        signs-not-enough-econ-money-message: '&cYou don''t have enough &f%i&c to create
            a CheckPoint!'
        create-message: '&6You have successfully created a CheckPoint!'
        place-message: '&6You have placed down a public CheckPoint!'
        use-message: '&6You have been placed at your CheckPoint!'
        no-permission-message: '&dYou do not have permission to do this!'
        clear-success-message: '&6You have successfully cleared your CheckPoint!'
        clear-fail-message: '&cYou do not have a CheckPoint to clear!'
        reload-message: '&6CheckPoints configuration reloaded!'
        teleport-success-message: '&6You have been teleported to &f%t&6''s CheckPoint!'
        teleport-fail-message: '&cPlayer &6%t&c does not have a CheckPoint set.'
    


    I'll be removing everything sign-related from this plugin tomorrow. I had a change of heart about signs.

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

    Donny

    Code:
    00:26:22 [WARNING] [CheckPoints] Error at SQL Query: query does not return ResultSet
    00:26:22 [WARNING] [CheckPoints] Error at SQL Query: query does not return ResultSet
    00:26:22 [WARNING] [CheckPoints] Error at SQL Query: query does not return ResultSet
    00:26:22 [WARNING] [CheckPoints] Error at SQL Query: query does not return ResultSet
    00:26:22 [WARNING] [CheckPoints] Error at SQL Query: query does not return ResultSet
    00:26:22 [WARNING] [CheckPoints] Error at SQL Query: query does not return ResultSet
    00:26:22 [WARNING] [CheckPoints] Error at SQL Query: query does not return ResultSet
    00:26:22 [WARNING] [CheckPoints] Error at SQL Query: query does not return ResultSet
    00:26:22 [WARNING] [CheckPoints] Error at SQL Query: query does not return ResultSet
    00:26:22 [WARNING] [CheckPoints] Error at SQL Query: query does not return ResultSet
    00:26:22 [WARNING] [CheckPoints] Error at SQL Query: query does not return ResultSet
    00:26:22 [WARNING] [CheckPoints] Error at SQL Query: query does not return ResultSet
    got it. the main error to come give me a bit
     
  3. Offline

    Kalman Olah

    Is this happening now, with 1.2.0?
     
  4. Offline

    Donny

    Don't allow sign placement if the player has a sign already =P. Maybe a message telling them they must remove their current sign first (/kill).

    I like the signs because they are interactive. Lots of bukkit plugins tend to not be interactive and just have text. Just makes it more fun =). So when ever given the opportunity I take the interactive route.

    The error I posted was in V1.0 . I didn't know if you had fixed the error in later versions, I didn't see anything about errors in the changelogs, so figured I'd post.
     
  5. Offline

    Kalman Olah

    I personally haven't encountered any errors with this release(v1.2)...That's why I released it :p.

    As for the personal sign chechpoints...I don't know, man. I'll probably add it, but I'm currently busy as hell coding DCP v2.0.0. So I'll add it, but give me some time. And if I may ask, why do you want signs so badly? :p.
     
  6. Offline

    Nolig

    An internal error ocurred while to perform this command !
    Error log :
    2011-08-05 13:45:29 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'checkpoint' in plugin CheckPoints v1.2.1 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670) 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:85) at net.minecraft.server.NetworkListenThread.a(SourceFile:105) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361) 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 me.kalmanolah.cp.OKmain.CheckPermission(OKmain.java:173) at me.kalmanolah.cp.OKCmd.onCommand(OKCmd.java:26) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35) ... 12 more
     
  7. Offline

    Kalman Olah

    What Permissions version are you using?
     
  8. Offline

    Nolig

    2.7
     
  9. Offline

    Kalman Olah

    Only works with Permissions 3.1.x as far as I know.
     
  10. Offline

    Nolig

    Ahhhhw . Any chance to get it to work with 2.7?

    I need this plugin :/

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

    Kalman Olah

    Give me a minute :).
    @Nolig

    Sorry bro. Turns out I have to choose between Permissions 3.1.x or Permissions 2.7.x. If I ever find a fix, I'll make sure to add support =/.

    Version 1.3.0

    • Added to the "OK" suite(see signature).
    • Added support for PermissionsEx, Bukkit's permissions, GroupManager, Permissions 3.1.x.
    • Changed name.
    • Changed permissions nodes to match name.

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

    Nolig

    :/ There are alot of plugins that support 3.0 & 2.7 but thank you for the try ;) Bukkits Permissions is good :)
     
  13. Offline

    shamankingnoh

    hey i feel really dumb asking this but i dont understand all this permission node stuff to use it can you explain
     
  14. Offline

    Kalman Olah

    It's simply. A permissions node is just a string in the <plugin>.<name> description. Each permissions node allows you to do what is described in my original post. Without the node, you literally won't be able to create a checkpoint and such.
    Permissions nodes are managed by several plugins. You could use Permissions, PermissionsEx, GroupManager, bPermissions or BukkitPermissions. Once you've set up one of these plugins (I'd recommend PermissionsEx) and have read its thread, I'm sure you'll understand the permissions nodes just fine :).
     
  15. Offline

    firecombat4

    do you know if this works with commandbook /home set commands, because even though i have a checkpoint it goes back to my home. is there a way to overide
     
  16. Offline

    Kalman Olah

    I changed the priority. If it doesn't work with 1.3.1, it probably won't work. Sorry.

    Version 1.3.1

    • Attempted fix for CommandBook /home conflict.
     
  17. Offline

    firecombat4

    thanks :D hopfully it works hehe, Grateful :p
    it only works if i delete my home so it has priority over going back to the commandbooks spawn just not home, Which is okay i can find a work around
     
  18. Offline

    SpiFioY

    Can you make an video? :confused:
     
  19. Offline

    Kalman Olah

    No?
     
  20. Offline

    staxx6

    Support for Permissions Bukkit?
    Code:
    2011-08-24 20:07:36 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'cp' in plugin OKCheckPoints v1.3.1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
        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 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 me.kalmanolah.cp.OKmain.CheckPermission(OKmain.java:216)
        at me.kalmanolah.cp.OKCmd.onCommand(OKCmd.java:26)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
     
  21. Offline

    Kalman Olah

    OKCheckPoints currently works with permissionsBukkit, but only if you're not using the 2.7 Permissions bridge.
     
  22. Offline

    cyberjacob

    feature suggestion: preset locations (created by admins) that act as checkpoints, which a player simply has to walk across/through to activate.

    addition: checkpoints don't necessarily go back to themselves when a player dies

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

    Kalman Olah

    This already exists in the form of checkpoint signs admins can place. I'll give it a thought though.
     
  24. Offline

    cyberjacob

    I kinda meant without the sign
     
  25. Offline

    Kalman Olah

    Confirmed to be working on CB 1185
     
  26. Offline

    wolf hatake

  27. Offline

    Kalman Olah

  28. Offline

    wolf hatake

    Thanks, work fine now !
     
  29. Offline

    formn

    just gonna say. How dare you take the Oatmeal Cream Pie acronym in vain!

    Aside from that I completely love this addon and I'm sure my users will too lol
     
  30. Offline

    TMAC_Kratos

    I have a idea for you to add to the sign part, by any chance can you add for the third line a way to name the checkpoint sign in which case it will make it how you can teleport to that sign or if you can even advance that more and make it how they can only teleport to that sign only if they activated the checkpoint at one moment of time. This feature will actually help out on my server due to me having a world with portal stick this will allow them to teleport to and area they have been to whenever they want to and not going to last checkpoint only wen dieing.
     
  31. Offline

    xvegan88x

    I get this:

    Code:
    2011-10-08 17:20:19 [SEVERE] null
    
    org.bukkit.command.CommandException: Unhandled exception executing command 'cp' in plugin OKCheckPoints v1.3.2
    
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
    
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:358)
    
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
    
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
    
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
    
        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:92)
    
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
    
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
    Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getUserObject(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissions/User;
    
        at me.kalmanolah.cp.OKmain.CheckPermission(OKmain.java:216)
    
        at me.kalmanolah.cp.OKCmd.onCommand(OKCmd.java:26)
    
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    
        ... 13 more
    When trying to use a command. I am using PermissionsBukkit 1.2. Is this plugin compatible with permissionsBukkit?
     

Share This Page