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
i am atm runnig some tests on the database file for the plugin
@franzmedia
it is uploadet, just waiting for bukkit to approv it
@simplimazing
i'm aware of it, fixing it atm, gonna release a new version today, sorry about it :(
Hey! When i tried to do /lp top i got an internal error
2012-04-24 16:39:57 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'lp' in plugin LoyaltyPoints v1.0.7
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.List
at com.github.franzmedia.LoyaltyPoints.LPCommand.top(LPCommand.java:217)
at com.github.franzmedia.LoyaltyPoints.LPCommand.onCommand(LPCommand.java:63)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
... 12 more
I want users to be able to spend their loyalty point, I tryed serversigns but when i take out the points the points just keep going negative. Any ideas?!
v 1.0.7 is uploaded
about the loadtime at the begining i can't fix it atm, trying to work on it so i can include mysql / sqlite access (faster loadtime)
@franzmedia
thanks for the responses. Could you pm me again? I didnt get the email
@MelonCraftServer
will you plz mail me the files (have pmed you my mail)
@burntim69
The bug is fixed there was missiong a space between cycle-time-in-seconds: 1800
trying to do so this error don't come (by making some test on it before load
@MelonCraftServer
Here are the current plugins I'm running: (not including LP): Plugins (50): PlugMan, ConsoleScheduler, SpamGuard, Vault, Multiverse-Core, RepairShop, dynmap, NoSpawnEggs, AuthMe, DisguiseCraft, ItemRepair, OpenInv, BleedingMobs, Votifier, MultiHome, CleanroomGenerator, WorldEdit, Multiverse-Inventories, FakeOP, LogBlockQuestioner, War, PermissionsEx, TerrainControl, LogBlock, jEnchant, WorldGuard, SimpleRestart, BorderGuard, BKCommonLib, Lockette, Modifyworld, NoCheat, NoLaggChunks, Essentials, XrayInformer, Multiverse-Portals, NoLaggItemStacker, TaxFreeRegion, ChestShop, My Worlds, SimpleRegionMarket, NoLaggLighting, ChatManager, EssentialsProtect, EssentialsSpawn, VanishNoPacket, NoLaggMonitor, Factions, Dynmap-Factions, NoLagg
@franzmedia:
More info: i am running lp version 1.0.6, but same glitch happens for 1.0.3 and any other version as far as i know. We are running the 1.2.5 r1. It hangs up not only the first time, but every time i try to enable it. It can take about 5-8 min to load, and after that, it is fine. The glitch started happening without any changes to plugins or server. It just started. It used to rin fine, so there were no conflicts. I never added any new plugs, so the glitch isnt with conflicting plugins. The plugin works fine after the long load time.
@burntim69
can you mail me it (sent a pm with my mail)
LP command is coming back with just saying lp in the chat for all players. When looking in the log its saying that the config.yml for LoyaltyPoints is returning with lots of errors. When I place it into the online YML Parser it confirms it. Not sure how to fix the errors that its giving me.
@MajorCyto
hmm can you plz send me your file (point and config) then i will try to fix it
Mine hangs just for a few moments sometimes, i think its while it loads the LP from file, we have a LOT of LP records. But it continues loading after like 2 seconds only stops for a moment for us.
@MelonCraftServer
Hey
First time you run it or another time?
can you give me some info about: Loyalty Points version, CraftBukkit version, and other plugins, i just tested it on a clean server only with LP on it, and it works.
-Kasper
This plugin seems to be hanging up on startup. It will try to enable, but will just stop, and make the server stop responding. Anyonelese have this problem or have a solution?
@simplimazing
i'm glad to hear, in 1.1 there gonna be the milestones (which can handle that :) )
can you pm me your server, if you want, i will be glad to see how you have used the plugin :)
@franzmedia
thanks for the fast response. Love the plugin already, can't wait for the next version. Im currently using it as a way to decide when a person has been on long enough to get better ranks. And I plan on even using it to earn rewards.
@simplimazing
atm you get a output, i can change so you can make in the config if you want output (on some of the commands like add, set and so on :) )
gonna come in next version :)