[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

    TMAC_Kratos

    it has bukkit permissions support, in which case you could possibly not have your permissions config correct
    by anychance you running spout?
     
  3. Offline

    xvegan88x

    Yes I am running Spout
     
  4. Offline

    TMAC_Kratos

    From the error log it looks as if there is a conflict with spout of some sort, im not the two plugin creator so i dont no wat the conflict may b but mayb try getting rid of spout just as a test and see
     
  5. Offline

    xvegan88x

    I switched me permissions to PEX and I am able to use the plugin now, however it seems to ignore the permissions. I gave myself access to okcheckpoints.teleport however I am unable to use the command (lack of permissions message) there is no error in the console.

    If it is of any use my permissions files is at:
    http://pastebin.com/ikYJeCw6
     
  6. Offline

    Kalman Olah

    Version 1.3.3

    • Minor update to permissions checking functions.
    @xvegan88x See if this works.
     
  7. Offline

    Kalman Olah

    Version 1.3.4

    • Updated to use the new configuration API.
     
  8. Offline

    xvegan88x

    I'm still getting permssion denied when trying to teleport. I am using bukkit 1317 and PermissionsEX 1.15 and Spout 449.

    It seems to honor some of the permissions. I can /cp reload only as admin (Admin has the okcheckpoints.reload permission) Maybe the issue is not strictly a permissions issue?

    I have the teleport permission (okcheckpoints.teleport) and I am unable to use /cp tp <playername>

    I don't see a link to the source code, is this opensource?
     
  9. Offline

    Kalman Olah

    You can decompile the plugin, bro. I'll upload the source to github in a few minutes :).
     
  10. Offline

    xvegan88x

    Ok, thanks for your help.
     
  11. Offline

    Kalman Olah

    Hang on, do you have "checkpoints.teleport" or "okcheckpoints.teleport"?

    Version 1.3.5

    • Changed teleport permission node to "okcheckpoints.teleport".

    Alright, so, I fixed the issue. It would appear that I forgot to change the permission from "checkpoints.teleport" to "okcheckpoints.teleport" when I converted part of the plugin. Should be fixed now. Sorry for the inconvenience.

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

    Deathlysteve-

    Like the idea, would help me. SUGGESTION: make an option to save the inventory of the player when he passes the checkpoint, and when he dies, he gets given the inventory he had when he passed the checkpoint.
     
  13. Offline

    Kalman Olah

    No. What if players start putting down blocks after they make their checkpoint? They'd pretty much be duplicating blocks for free.
     
  14. Offline

    xvegan88x

    Thank you, you are awesome :) And I didn't even have to learn how to decompile java :)

    Also would it be possible to get an option to make it also cost money to use teleport?
     
  15. Offline

    Deathlysteve-

    true... but could you still have it as an OPTION? not as default, and make ppl aware that they can do that? if u accually do that, then itd be perfect for this masssivvee project of mine.
     
  16. Offline

    kalez

    Does this require permissions? Or will it default to Ops?
     
  17. Offline

    VirtualNick

    how can I use a public sign checkpoint in an area protected by worldguard? When regular users click the sign, nothing happens...
     
  18. Offline

    Cau3T

    Hi,

    Great plugin ! It saves my project ;)

    May I suggest that you make two separate permissions for teleportation, like "okckeckpoints.teleport.me" and "okcheckpoints.teleport.other" ? It will be great if these options could be implemented.

    May I also suggest that the command "/cp tp" refers to "/cp tp <player_name_which_had_wrote_the_command>" ?

    I create a multiplayer map adventure and this simplification can help us to not answer at the question "Ca marche pas !" ("It doesn't work !") just because players have caps ot underscores or other complicated names...

    Thanks,
    Cau3T
     
  19. Offline

    DarkDanny



    ... Please fix this.
     
  20. Offline

    BoorMachine

    Great Plugins, Please fix the download link and upgrade to 1.2.3.
     
  21. Offline

    jrodier

    please upgrade to 1.2.5
     
  22. Offline

    Arkee777

    could you please update this plugin and keep the sign checkpoint
     
  23. Offline

    md_5

    Long time no see Kalman Olah. You will notice that this thread has now been placed into the Inactive Plugin subforum.
    If you wish to revive this plugin, please ensure that you update and test compatibility with the latest recommended Bukkit build before reporting your original post, asking for it to be moved back to the release forum.

    Thanks for your time.
    md_5
     

Share This Page