Inactive [ADMIN/INFO] Loyalty Points 1.1.3 - Track time -> points [1.3.2-R0.1]

Discussion in 'Inactive/Unsupported Plugins' started by kasperfranz, Apr 2, 2012.

  1. [​IMG]
    [​IMG] [​IMG] [​IMG] [​IMG] [​IMG]

    Introduction

    Loyalty Points is Tracks time been online and giving points out of this.
    Current Version 1.1.3, Recommended for CraftBukkit 1.3.2-R0.1

    Features

    • When one logs in, the LoyaltyPoints tracks the amount of time the player has been on and awards her points according to a certain amount of time cycles.
    • Features a configuration file which you can define how many points a person gets after every time cycle since she has logged on, how many points she will start with, and how long the time cycle will be.
    • AFK tracking system, if a player haven't moved between the checks he don't get any points
    • Also includes custom message configuration for commands (includes colors as well)!
    Commands

    Command - Description
    /lp - To check your own LoyaltyPoints.
    /lp (playername) - Checks other player's points.
    /lp help - Shows all possible commands.
    /lp top - Shows the top 10 players with the most LoyaltyPoints.
    /lp version - Checks the version of the plugin.
    /lp next - Shows time to next payout.
    /lp playtime or /lp play - Shows the playtime of the player.
    /lp reload - Reloads the plugin, includes configuration and points data reload.
    /lp set [username] [amount] (case sensitive) - To have the specified amount of points.
    /lp add [username] [amount] (case sensitive) - Add x points to player (negative amount also).

    Planned Features

    • Possibility to pay an defined amount of money when a player gains a specified amount of LoyaltyPoints.
    • Server-wide announcements when a player gains a certain amount of points (reaches a point milestone)
    • Restart scores (a command for it)
    • Remove points (a command for it)
    • Receive rewards on specified point milestones
    • Reward system.
    Changelog
    Version 1.1.3
    • Made some changes to the storage, now it only loads the users there are online and when they logout it saves the user and remove him from the server (still keeps the info in the SQL server)
    • This should make the load alot faster and should have fixed alot of errors.
    • Also now /lp top 10 gives you 1-10 and /lp top 20 gives you 11-20 and so on
    • File based is removed (migrated to SQlite (can be changed))
    • AFK tracking is removed for now.
    Full history: Click Here

    Metrics
    To determine popularity of this plugin, plugin installs are automatically tracked by the Metrics plugin tracking system. If you don't want to help or are paranoid, edit plugins/PluginMetrics/config.yml and set opt-out to true. But seeing more users makes me very happy.
    Loyalty Points Statistics by Metrics
    [​IMG]

    [​IMG]
     
  2. Offline

    Trust518

    Really cool! Gonna test it out right away!
     
  3. Good post feedback, nice to have and so on
     
  4. Offline

    Trust518

    I will consider using the plugin :) where it counts 1 point per min, then i can then see how many mins they have played :)
     
  5. you can in next update see the time played with a command :)
     
  6. Offline

    Trust518

    If you add that now it will be 100% sure that i will use the plugin.

    Error: when typing the /lp command the message pops up 2 times

    Example

    <Trust518> /lp
    You have 2 points
    You have 2 points
     
  7. gonna fix that ASAP
     
  8. Offline

    Trust518

    Thank you :)

    (Reply to this message when its done)

    EDIT: Add a permission for /lp command

    loyaltypoints.CheckSelf
     
  9. The name is: loyaltypoints.check.self


    it's uploaded
     
  10. updated:

    Made some changes and added a variable in the config (updatetime) which
    is the what cycle it needs to save the points to config.
    added /lp playtime
    and some other fixes

    Permission changes:
    loyaltypoints.playtime (allow the player to see it's playtime)

    Made some changes to the permissions:
    now include:
    loyaltypoints.user:
    loyaltypoints.check.self, loyaltypoints.next, loyaltypoints.help,
    loyaltypoints.top,loyaltypoints.playtime
    loyaltypoints.admin
    all permissions
     
  11. New Update:
    Fixed a bug where ppl got time / points when they aren't logged in.

    Added new command /lp add [player] [points]

    Added new Permission: loyaltypoints.add default: false
     
  12. Offline

    Williamsson

    Do this plugin have a use for the loyalty points, or does it have a api of some sort to let other plugins make use of them?
    :)
     
  13. atm there is no use of this loyalty points, but gonna come soon :)
    with different things you can use it for (modified by a file :))
     
  14. Offline

    Zingerdude

    Did you get the Idea of Loyalty Points from Runescape? Cause runescape members also get Loyalty points which they can use in a special shop :p. Love the idea though downloading right now.
     
  15. didn't know :p

    tell me how yoy feel about the plugin :)?
     
  16. Offline

    Zingerdude

    It's awesome!Can't wait till you add an Loyalty Shop.
     
  17. Offline

    Rossy

    add a sign/chest based shop where you can spend these points, or hook up with iconomy chestshop
     
  18. Offline

    Matty707

    Hello, I like this plugin so far, but what would be awesome is if you could add one more permission node that when given to certain group in the permissions file, only those groups with this permission node can receive loyalty points.
    Thanks a bunch if this could be done! : )
     
  19. I have putted it on my todo list :)
     
  20. Offline

    Matty707

    Awesome! Take your time : ]
     
  21. Offline

    ashlii21

    Hello there
    This might just be me but it seems my users can use all of the commands from your plugin yet they don't have a single permission relating to it. I am using the latest version of the plugin and am running Bukkit 2149.
    There are no errors in the log. The plugin just doesnt seem to check if a user has a permission or not before using the commands. Would love to get this fixed for my server and was quite happy with it until I found this problem.
     
  22. what plugins are you using?
     
  23. Offline

    ashlii21

    Plugins (36): Orebfuscator, MultiInv, PlgLogCmd, WorldEdit, BanReport, AutoGamemode, Backup, LogBlockQuestioner, Vault, PermissionsEx, Multiverse-Core, LogBlock, FirstLastSeen, WorldGuard, dynmap, NoSpawnEggs, StopTalkingAutoBan, PEXRank, MasterPromote, AntiPub, BKCommonLib, OpenInv, Lockette, NoCheat, Votifier, MobArena, NoLaggChunks, Essentials, NoLaggLighting, EssentialsSpawn, Multiverse-Portals, VanishNoPacket, NoLaggItemStacker, ecoCreature, NoLaggMonitor, EssentialsChat
     
  24. What commands are you referring to, if it's commands like /lp (without anything else) it's one of the commands there are standard (and all users have it,
     
  25. Offline

    ashlii21



    EDIT: I have done some more testing and it seems that they can't use every command but they can use the /lp add command without any permissions from the plugin

    These are the permissions from our Builder group and as you can see they don't have any permissions for your plugin yet can use the /lp add command.
    Code:
      Builder:
        prefix: ''
        permissions:
        - essentials.signs.use.buy
        - essentials.chat.color
        - essentials.clearinventory
        - -essentials.nick.magic
        - -essentials.chat.magic
        - essentials.chat.url
        - ecocreature.reward.*
        - essentials.warp.*
        - essentials.warp
        - essentials.afk
        - essentials.balance
        - essentials.chat.shout
        - essentials.compass
        - essentials.delhome
        - essentials.help
        - essentials.home
        - essentials.list
        - essentials.sethome
        - essentials.me
        - essentials.msg
        - essentials.pay
        - essentials.ping
        - essentials.portal
        - essentials.signs.break.protection
        - essentials.signs.use.enchant
        - essentials.tpa
        - essentials.worth
        - essentials.kit
        - essentials.itemdb
        - lockette.create.all
        - lockette.user.create.*
        - logblock.me
        - nocheat.checks.moving.flying
        - nocheat.checks.moving.runfly
        - nocheat.checks.moving.swimming
        - permissions.build
        - essentials.back
    
     
  26. Offline

    Matty707

    I also have noticed this, that everyone has access to the commands even when permissions aren't put into the permission files. I'm glad they don't know the give command, haha. And yea along with the specific groups node, I too would like this fixed before they find out. o.o
     
  27. i just tested it and i can only use the normal commands and the add command (fixed, and need to rewrite some code before release)

    1.0.7
    Made some checks on the config file, so it checks if it excists (don't
    gets you yml errors)

    Fixed a bug where ppl, could use a command they didn't have permission
    for

    Made a new class for users (bether code style and so on)


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

    Matty707

    Aight, thanks a lot bro! I'll test it out soon and let ya know if there is any issues!
     
  29. good :) ty
     
  30. Offline

    Lice

    i got an error when i type in the console /lp top

    Code:
    03:01 PM [SEVERE] Exception in thread "AWT-EventQueue-0"
    03:01 PM [SEVERE] org.bukkit.command.CommandException: Unhandled exception executing command 'lp' in plugin LoyaltyPoints v1.0.7
    03:01 PM [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    03:01 PM [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    03:01 PM [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473)
    03:01 PM [SEVERE] at me.escapeNT.pail.GUIComponents.ServerConsolePanel$ConsoleCommandListener.actionPerformed(ServerConsolePanel.java:78)
    03:01 PM [SEVERE] at javax.swing.JTextField.fireActionPerformed(Unknown Source)
    03:01 PM [SEVERE] at javax.swing.JTextField.postActionEvent(Unknown Source)
    03:01 PM [SEVERE] at javax.swing.JTextField$NotifyAction.actionPerformed(Unknown Source)
    03:01 PM [SEVERE] at javax.swing.SwingUtilities.notifyAction(Unknown Source)
    03:01 PM [SEVERE] at javax.swing.JComponent.processKeyBinding(Unknown Source)
    03:01 PM [SEVERE] at javax.swing.JComponent.processKeyBindings(Unknown Source)
    03:01 PM [SEVERE] at javax.swing.JComponent.processKeyEvent(Unknown Source)
    03:01 PM [SEVERE] at java.awt.Component.processEvent(Unknown Source)
    03:01 PM [SEVERE] at java.awt.Container.processEvent(Unknown Source)
    03:01 PM [SEVERE] at java.awt.Component.dispatchEventImpl(Unknown Source)
    03:01 PM [SEVERE] at java.awt.Container.dispatchEventImpl(Unknown Source)
    03:01 PM [SEVERE] at java.awt.Component.dispatchEvent(Unknown Source)
    03:01 PM [SEVERE] at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
    03:01 PM [SEVERE] at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
    03:01 PM [SEVERE] at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
    03:01 PM [SEVERE] at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
    03:01 PM [SEVERE] at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
    03:01 PM [SEVERE] at java.awt.Component.dispatchEventImpl(Unknown Source)
    03:01 PM [SEVERE] at java.awt.Container.dispatchEventImpl(Unknown Source)
    03:01 PM [SEVERE] at java.awt.Window.dispatchEventImpl(Unknown Source)
    03:01 PM [SEVERE] at java.awt.Component.dispatchEvent(Unknown Source)
    03:01 PM [SEVERE] at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    03:01 PM [SEVERE] at java.awt.EventQueue.access$000(Unknown Source)
    03:01 PM [SEVERE] at java.awt.EventQueue$1.run(Unknown Source)
    03:01 PM [SEVERE] at java.security.AccessController.doPrivileged(Native Method)
    03:01 PM [SEVERE] at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
    03:01 PM [SEVERE] at java.awt.EventQueue$2.run(Unknown Source)
    03:01 PM [SEVERE] at java.security.AccessController.doPrivileged(Native Method)
    03:01 PM [SEVERE] at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
    03:01 PM [SEVERE] at java.awt.EventQueue.dispatchEvent(Unknown Source)
    03:01 PM [SEVERE] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    03:01 PM [SEVERE] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    03:01 PM [SEVERE] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    03:01 PM [SEVERE] at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    03:01 PM [SEVERE] at java.awt.EventDispatchThread.run(Unknown Source)
    03:01 PM [SEVERE] Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.List
    03:01 PM [SEVERE] at com.github.franzmedia.LoyaltyPoints.LPCommand.top(LPCommand.java:217)
    03:01 PM [SEVERE] at com.github.franzmedia.LoyaltyPoints.LPCommand.onCommand(LPCommand.java:63)
    03:01 PM [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    03:01 PM [SEVERE] ... 42 more
    
     

Share This Page