markhughes / FactionsPlus

FactionsPlus extends on-top of Factions to provide more features.
http://ma.rkhugh.es/factionsplus
GNU Affero General Public License v3.0
15 stars 16 forks source link

Re-do /f money top #119

Open mibby opened 10 years ago

mibby commented 10 years ago

When I type '/f money top', it outputs 'Sorting 1 factions...' when I have dozens of factions.

When I try the command again, it outputs 'Please wait the sorting is scheduled to start soon.'

The error in console that is outputted after the first command attempt.

[00:30:38] [Craft Scheduler Thread - 80/WARN]: Exception in thread "Craft Scheduler Thread - 80" 
[00:30:38] [Craft Scheduler Thread - 80/WARN]: org.apache.commons.lang.UnhandledException: Plugin FactionsPlus v0.6.8 generated an exception while executing task 32375
    at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassCastException: com.massivecraft.factions.entity.FactionColl cannot be cast to com.massivecraft.factions.entity.Faction
    at markehme.factionsplus.Cmds.CmdMoneyTop$3.run2(CmdMoneyTop.java:148)
    at markehme.factionsplus.Cmds.CmdMoneyTop$3.run2(CmdMoneyTop.java:1)
    at markehme.factionsplus.util.RunnableWithParams.run(RunnableWithParams.java:17)
    at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java:58)
    at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
    ... 3 more

Also, would it be possible to list top factions by money without being in a faction? Perhaps even have a top factions by power list?

Factions 2.3.0 mcore 7.0.2 FactionsPlus 0.6.8

markhughes commented 10 years ago

I haven't tested this in a while. I'll have a look over it.

markhughes commented 10 years ago

This command is being re-done in 0.7.0