CrazyPromoter
Version 2.12
Description
Promote Players after a certain time if they are in a special group. Condition Tree for finding matching players and simple view.
Features
- Fully costumizeable condition tree. With predefined datastructures.
Availiable:- Condition_TRUE, Condition_FALSE, Condition_NOT, Condition_AND, Condition_OR,
ConditionPlayerPermission, ConditionPlayerPermissionGroup - Conditions served by other Plugins
- Condition_TRUE, Condition_FALSE, Condition_NOT, Condition_AND, Condition_OR,
- Checking for promotions on Command, Login, Intervals
Planned features
- More Conditions
Requirements
CrazyCore (Version 10.7.1 or later)
Optional Requirements
- CrazyOnline
- ConditionPlayerOnlineTime
- ConditionPlayerTimeSinceFirstJoin
- ConditionPlayerTimeSinceLastJoin
- ConditionPlayerTimeSinceLastLogout
- CrazyLogin
- ConditionPlayerLoginHasAccount
- ConditionPlayerLoginIsLoggedIn
Commands with their Permissions
Usage
Languages
- en_en (English)
- de_de (German - Deutsch)
- fi_fi (Finnish - Suomi, thanks to suomenlippis)
- fr_fr (French - Français, thanks to FireBurst699)
- nl_nl (Dutch - Nederlands, thanks to blipman17)
- pl_pl (Polish - polski, thanks to MegaManNT)
- ru_ru (Russian - русский, thanks to kilolife)
(Please post additional translations here, so i can share them to everybody!)
@TheOneMadHawk
It is what i need, because im trying to count 12 hours play time since they have joined the server. Not since they have been online because then no one would be able to achieve that. Or am i mis-understanding/have it backwards?
@MajorCyto
TimeSinceFirstJoin1
type: de.st_ddt.crazyutil.conditions.player.ConditionPlayerTimeSinceFirstJoin
this is potentially not what you need.
This counts the time since first join independenty from being online or not.
type: de.st_ddt.crazyutil.conditions.player.ConditionPlayerOnlineTime
counts the time the player was really online.
@TheOneMadHawk
Well actually maybe not... a member logged in and they are at 3 hours and 48 minutes.. but it promoted them instantly to member+ anyways O.o... so it stopped spamming anyone with 12 hour play time to member+ no matter what rank.
But now it auto-promotes members period to member+ whether they have the play time or not?
@TheOneMadHawk
Changing that seemed to have worked. I test by becoming a member, then it promoted me immediately to member+. Then i switched myself back to owner, waited/checked for promotion and it didnt spam and downmote me to member+ kept me at Owner, so i guess that worked o.o.
@MajorCyto
all though im not sure if you meant to make the chat-header configurable
This will be configurable with the next CrazyCore version.
I forgot to remove it from the config sample.
@MajorCyto
NPE at de.st_ddt.crazyutil.conditions.Condition_NOT.match(Condition_NOT.java:39)
I guess it fails loading the condition which should be inverted.
And i don't know exactly which version you are using. (Its a little bit confusing with all that dev builds in my head)
but i guess i replaced
de.st_ddt.crazyutil.conditions.player.ConditionPlayerEssentialsGroupManagerGroup
with
de.st_ddt.crazyutil.conditions.player.ConditionPlayerPermissionGroup
which works for all permission managers supported by CrazyCore
Oh god please help lol
Error i get is...
Im trying to do this...
Maybe you know a more efficient way, but its promoting members to member+ after 12 hours of play time which is CORRECT. but it keeps doing it over and over, sending the message over and over. And it takes manager/owner and downgrades us to member+ O.O halp lol.
@TheOneMadHawk
That version worked, all though im not sure if you meant to make the chat-header configurable because it doesn't seem to work lol. I tried changing text/color and it still said the same thing. Not a big deal, but i wasn't sure if that was supposed to be configurable or not.
@MajorCyto
Mhh i guess 2.11 isn't working as it should.
Use this instead:
http://dev.bukkit.org/server-mods/crazypromoter/files/17-crazy-promoter-v2-12/
This version definitly works (make sure you have the latest CrazyCore version)
Here the piece of code that will always work:
Sorry for the trouble i'm causing you.
Maybe im mis-understanding but i tried using the exact same essentials example below and no matter what combination i try it just always says no promotions available, and wont run anything.
Can you give me a small example condition that is SURE to always run (like saying something in chat) so i can at least test and see if even that works. D:
@ruben2105
I will check this and answer as soon as possible.
EDIT:
update CrazyCore
download the latest version of CrazyPromoter (http://dev.bukkit.org/server-mods/crazypromoter/files/15-crazy-promoter-v2-10-1/)
(i didn't test it ingame, but plugin has been enabled successfully.)
@TheOneMadHawk
So i downloaded your plugin an i like all the options you can do with it but i can't get my script running.
Running the Core plugin with it
[SEVERE] Error occurred while enabling CrazyPromoter vC8_2.9.2 (Is it up to date?) java.lang.NullPointerException at java.lang.Class.asSubclass(Unknown Source) at de.st_ddt.crazyutil.ObjectSaveLoadHelper.load(ObjectSaveLoadHelper.java:220) at de.st_ddt.crazyutil.ObjectSaveLoadHelper.load(ObjectSaveLoadHelper.java:207) at de.st_ddt.crazyutil.conditions.ConditionBase.load(ConditionBase.java:17) at de.st_ddt.crazypromoter.Promotion.<init>(Promotion.java:27) at de.st_ddt.crazypromoter.CrazyPromoter.load(CrazyPromoter.java:64) at de.st_ddt.crazyplugin.CrazyPlugin.onEnable(CrazyPlugin.java:102) at de.st_ddt.crazypromoter.CrazyPromoter.onEnable(CrazyPromoter.java:42) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:270) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:252) at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:578) at org.bukkit.Bukkit.reload(Bukkit.java:183) at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:502) at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:494) at net.minecraft.server.DedicatedServer.ai(DedicatedServer.java:249) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:214) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
thanks looks ok.
@kozzy68
I made a quick test, i guess its still working.
Try this quick fix:
[Link outdated]
I'm sorry for being so slow with updating all my plugins, but it is a lot of coding stuff.
Is this promoter still working ? no need to wait for update for crazycore 9 ?
@Sypher40
I use ServerSigns for that.
@Sypher40
Currently this is not possible, but i can add something like ConditionPlayerItemInHand.
Hey, can you add a way for players to click on signs to promote themselves? My server runs two groups players can choose from and I have to change them myself.
@WEB11
ConditionPlayerTimeSinceFirstJoin
It seems to return always true, doesn't it?
I think i just found the bug. Just one little error.
FirstJoin-Now>=Time (Wrong)
Now-FirstJoin>=Time (Correct)
I upload the fix asap. (CrazyOnline v4.5.1 or v4.6)
I fail testing the things that seems to be too simple to cause bugs.
@TheOneMadHawk
Thanks for the reply. I don't see the need for a current session time check but that's just my setup. I am having a little trouble getting the ConditionPlayerTimeSinceFirstJoin to work properly. Any suggestions?
@WEB11
Does it check for the current session online time or the total online time added from all previous essions?
It checks the total time online (summed up all previous sessions)
Shall i add a condition for current session only, too?