Loyalty Points
Introduction
Loyalty Points is Tracks time been online and giving points out of this.
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
Commands | 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). |
Development Builds
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
: Coming Soon
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
franzmedia:
I've run into a critical bug using v1.0.8.1 and attempting to migrate to mysql or sqllite.
I am able to migrate the data properly with the /lp tosql command. However, every time a user logs in, their points are RESET to 0 in game and the old data in the sql is overwritten.
I tried doing an additional restart of the server after migrating the data, and it did not help. Records were still wiped.
I rolled back to 1.0.7.1 for now in order to preserve my players points.
Has anyone else seen this problem?
Great plugin aside from this latest issue. I'd like to continue to use it and move to mysql once this problem is fixed.
@GrimblyGorn
I just fixed it, forgot to update version nr. in the plugin :( sorry aboiut that, just fixed it so it don't get that error
I don't get any startup errors using 1.0.81 but it does give me this after everything else is started up "?6[LoyaltyPoints] is not up to date, the new version:1.0.8.1".
Thought you might like to know about it.
add money rewards as soon u can =)
Have uploadet a new version 1.0.8.1
@gdude2002
I can work on some of it, but i think the problem is the amount of users, need to seek through, working on a fix soon, i'm going through the code for the startup atm and working on the fix for it.
Do you have skype, more so if i may maek some tests with you and you server (like testing what makes the server lagging) if you have please send me a request franzmedia1 is my username
@franzmedia
I'll look into switching over.
And, on enable, there's a massive lagspike, which prevents the server from doing anything until the plugin has finished loading. After that, it just slows the server down in general.
@gdude2002
try to transform it to mysql or sqlite, it should be going some faster.
and is it at enable or all time?
@franzmedia
Continuous. We pinned down some of the lag to redstonechips; but it's still not great with LP running.
EDIT: the LP points file is almost 5,000 lines (we get a LOT of unique players) - maybe that has something to do with it?
@gdude2002
is the lag only at the enable? or is it a continours problem?
@gdude2002
Atm you can only tranform from file to sqlite or mysql (set your point type to 2 (for sqlite) or mysql) and write lp tosql in the cmd (only from console)
@franzmedia
Is there a way to move our loyaltypoints database between the three formats? For example, if I wanted to go from file-based to SQLite?
Also, this plugin appears to heavily lag our server. It takes ages to load on startup and it causes a /lot/ of lag while it's enabled during runtime.. Any ideas on that?
EDIT: I can confirm that this plugin lags our server. A lot. Can we do something about this?
1.0.8 is out just waiting for revision :)
@MajorCyto
I have sent you a PM about some dev build test.
if this test is going without problems there are gonna come a new version out in 1-2 days!
@franzmedia
Awe thanks :O! <333
@MajorCyto
Gonna make 1.0.8 with mysql then :) just only tested it with sqlite atm, but gonna implent it only for you :P
@franzmedia
Awe ok :[ we have a lot of stuff integrated with our website, and so thats why MySql is the best option for me.
@MajorCyto
at 1.0.8 it only gonna be with sqlite and file (gonna add mysql later)
@franzmedia
If you can stand it, i think all 3 options are always best that way there is something for everyone, and flatfile should be default. Personally i will def be using MySql!
Question:
Do you want to have the option to select if it's sqlite, mysql or file based? or should i just by default make it sqlite?
what do you ppl think about it?