Inactive [ADMN] ThumbsApply v3.1.1 - Mute Guests and Auto-Promote them [1.2.3-R0.1]

Discussion in 'Inactive/Unsupported Plugins' started by TOdkommt, Sep 11, 2011.

  1. Offline

    TOdkommt

    ThumbsApply - The Auto-Application Plugin:
    Version: v3.1.2
    Tested Builds: #2034 (1.2.3-R0.1)

    ThumbsApply is a plugin, that makes life for admins a lot easier. You can not only auto-promote your server guests by letting them enter a password, hidden in the rules or by setting a certain time they have to be online.
    You can also Mute your Guests and show them a special Message on joining the server if you want. This Plugin supports Permissions 3.x, GroupManager, PermissionsEx, bPermissions and PermissionsBukkit.

    Bukkit Dev Page (Updates slower due to file approval): Click here

    by Todkommt

    Features:
    * Auto-promote Guests on your server
    * Mute guests
    * Show guests a special MotD
    * Fully customizable player messages
    * Supports per world promotion
    * Supports most common permissions plugins
    * Modular structure, you can download only the modules that you need
    * Promotion through password or after a certain time
    * Logs all promotions

    Donations:
    I put a lot of effort and time into this plugin, in which I don't get paid. If you enjoy this plugin, feel free to donate here if you want. The money will be directly referred to my minecraft server.

    Commands:

    * apply: | usage: /apply <password> | description: Promotes the player if the password is correct.
    * apply: | usage: /apply timeleft (if you have a group with MethodTimedPromotion) | description: Returns you the time left until promotion.

    Permissions:

    * ThumbsApply.NotGuest: give it to your groups with building rights (required).
    * group.<groupname>: give the permission to every group, replace groupname with the name of the group you are giving the permission to. This is to handle group management in permissions plugins that don't support that natively.


    Config:



    Here is a default Config with all entries explained:

    options: <-----General Options
    chatBlockEnabled: false <------Block Guests from chatting?
    joinMessageEnabled: true <-------Enable an extra join message for guests?
    tickDelay: 60000 <-------The delay between two ticks (higher is performance friendlier, but less accurate)
    blockPasswordInChat: true <-------Block the usage of the password in the chat (by both guests and players)?
    groups: <------Group configuration
    User: default <-----Any group below Users gets promoted to User after entering the password "default"
    Mod: '%1000' <------Any group below Mod gets promoted to Mod after being online for 1000 minutes


    Localization:

    3.0+ variables:
    * {player} outputs the player name
    * {group} outputs the group name
    * {password} outputs the password (only available with password promotion)
    * {time} outputs the time left until promotion (only available with timed promotion)


    Show Spoiler
    v2.1 or later:
    Just edit the file "localization.yml" made in /plugins/ThumbsApply/localization to your likes. DO NOT remove any single quotes. The $0 in JOIN_MESSAGE_PASSWORD and JOIN_MESSAGE_TIME represents the player name, the $1 in JOIN_MESSAGE_TIME represents the time the player has left until he gets promoted. The $0 in TIME_TO_GO_CHAT represents the time the player has left until he gets promoted.

    v2.4 or later:
    The Localization supports the standard Minecraft color codes as well as the following variables:
    * {player} outputs the player name
    * Temporarily removed: {timeleft} outputs the time left until promotion



    Downloads:

    Newest:
    Multi-Permissions Version:
    <Edit by Moderator: Redacted bit url>

    Modules (for v3.x):
    * ModuleTimedPromotion


    Show Spoiler
    Version 2.5.2:
    Multi-Permissions Version:
    Download | Source
    CraftBukkit 1240+:
    Permissions Version:
    Download | Source
    PermissionsEx Version:
    Download | Source
    Superperms/PermissionsBukkit Version:
    Download | Source


    Older:
    Permissions Version:
    Download | Source
    PermissionsEx Version:
    Download | Source
    Superperms/PermissionsBukkit Version:
    Download | Source
    GroupManager Version:
    Download | Source



    TODO:
    * Localization Files
    * Timed Promotion
    * Your requested features

    Feel free to suggest new features, or send in bug reports.


    Servers that use this plugin (feel free to post you server in the thread so i can add it):
    * www.OreCraft.org
    * www.Pr3datorCraft.com
    * www.coolioserver.net
    * roycraft.zapto.org
    * www.minecraft-spielplatz.de
    * www.famousserver.de
    * heroiccraft.com
    * lemoncraft.com
    * www.NeroCraft.com
    * zeoldcraft.com

    Changelog:

    Version 3.1.2
    * Final fix for localizations (haha, saying that since 4 versions)

    Version 3.1.1b
    * Minor fix for localizations (again >.<)

    Version 3.1.1a
    * Minor fix for localizations
    * Fix for join messages

    Version 3.1.1
    * Minor fix for localizations

    Version 3.1
    * Localizations now work
    * Added command to see the time remaining until promotion
    * Added log file

    Version 3.0.3
    * Declared as public release
    * Added save files for ModuleTimedPromotion
    * Added option to hide password in chat

    Version 3.0.1 beta
    * Added generated group defaults.
    * Added error message when no groups are present (to prevent that ugly NullPointer)

    Version 3.0 beta
    * Revisited the code, rewrote the main class from scratch
    * Modular version of the plugin.
    * Save of time for promotion not implemented yet
    * Relatively stable, but please give me feedback on any bugs.


    Show Spoiler
    Version 2.5.2
    * GroupManager now supports per world promotion.

    Version 2.5.1
    * Added bPermissions support.

    Version 2.5
    * Temporarily removed the {timeleft} and {togroup} localization vars due to bugs
    * Added per world group support (doesn't work with PermissionsBukkit or GroupManager)
    * Added debug mode to give more information on errors

    Version 2.4.2-2.4.4
    * Serveral small technical fixes. Check the BukkitDev page for more information.

    Version 2.4.1
    * Added Configuration reload command

    Version 2.4
    * Redid the localization variable system. More info in the Localization section.

    Version 2.3

    * Added thread restart command to debug the plugin
    * Added message with time until promotion when a player chats with chatblock and timedPromotion enabled

    Version 2.2

    * Added timed promotion

    Version 2.1

    * Added Localization
    * FIX: 2 Checks on command execution were missing

    Version 2.0

    * Updated for CB1597 (1.0.1-R1)
    * Complete Revamp of the plugin, removed serveral unnessessary features and completely rewrote the code to make it more extendable
    * Multi-Permissions Version for all common permission plugins



    Show Spoiler
    Version 1.5
    * Updated for CraftBukkit 1337
    * Combined all single version to one jar (without GroupManager by now)

    Version 1.4


    * Added GroupManager support
    * Added an option to promote users after a certain time (doesn't work with Doublegroups)

    Version 1.3


    * Added Support for multiple group promoting (depending on the entered password)

    Version 1.2


    * Added localization files
    * Added option for custom command (you have to delete the old config to get the new option)

    Version 1.1.1


    * Fixed a code mistake, that made the chatblockenabled option useless (only Permissions and Superperms Version)
    * Wrote permission node down in the plugin.yml

    Version 1.1


    * Adding PermissionsEx Support
    * Changing to check per Permission node (fix for the problems with Bukkit #1091+)

    Version 1.0


    * Releasing ThumbsApply
     
    Last edited by a moderator: Feb 21, 2017
  2. Hi,

    I have one idea for the plugin;

    - Is it possible to let the plugin automaticly broadcast an message every 5 minutes to all players which haven't done the password thing yet?
     
  3. Offline

    javoris767

    When someone says the pass it does this.

    Code:
    2012-02-26 06:35:57 [SEVERE] Could not pass event org.bukkit.event.player.PlayerChatEvent to ThumbsApply
     
    org.bukkit.event.EventException
     
        at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1026)
     
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61)
     
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
     
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:749)
     
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:732)
     
        at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
     
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
     
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
     
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
     
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
     
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
     
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
     
    Caused by: java.lang.reflect.InvocationTargetException
     
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     
        at java.lang.reflect.Method.invoke(Method.java:601)
     
        at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1024)
     
        ... 11 more
     
    Caused by: java.lang.NullPointerException
     
        at me.Todkommt.ThumbsApply.Messaging.send(Messaging.java:50)
     
        at me.Todkommt.ThumbsApply.Messaging.sendMsgBuffer(Messaging.java:30)
     
        at me.Todkommt.ThumbsApply.listeners.ThumbsApplyPlayerListener.onPlayerChat(ThumbsApplyPlayerListener.java:55)
     
        ... 16 more
     
    2012-02-26 06:36:09 [WARNING] Task of 'ThumbsApply' generated an exception
     
    java.lang.NullPointerException
     
        at me.Todkommt.ThumbsApply.Messaging.send(Messaging.java:50)
     
        at me.Todkommt.ThumbsApply.Messaging.sendMsgBuffer(Messaging.java:30)
     
        at me.Todkommt.ThumbsApply.ThumbsApply.update(ThumbsApply.java:284)
     
        at me.Todkommt.ThumbsApply.ThumbsApply$1.run(ThumbsApply.java:84)
     
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
     
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:503)
     
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
     
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    
    When they do /apply timeleft

    Code:
    2012-02-26 06:38:39 [SEVERE] null
     
    org.bukkit.command.CommandException: Unhandled exception executing command 'apply' in plugin ThumbsApply v3.1
     
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
     
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
     
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:402)
     
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:784)
     
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:744)
     
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:732)
     
        at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
     
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
     
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
     
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
     
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
     
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
     
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
     
    Caused by: java.lang.NullPointerException
     
        at me.Todkommt.ThumbsApply.Messaging.send(Messaging.java:50)
     
        at me.Todkommt.ThumbsApply.Messaging.sendMsgBuffer(Messaging.java:30)
     
        at me.Todkommt.ThumbsApply.ThumbsApply.onCommand(ThumbsApply.java:220)
     
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
     
        ... 12 more
     
  4. Offline

    TOdkommt

    that must be a problem with your server. apparently the commandsender is null, but my code just uses the one bukkit gives me, which means bukkit gives an empty commandsender to my plugin which means something must be broken. at least as far as i can tell. i checked the code but nothing is wrong, and in my tests i never had that issue.

    edit: yep, just went through the entire process and the CommandSender that is null is definately the one bukkit gave me. so you should fix your bukkit :p
     
  5. Offline

    javoris767

    Well, from this error could you tell me whats wrong with my server?
     
  6. Offline

    TOdkommt

    unfortunately not. all i know that your server doesnt give me the commandsender for some reason. if you use a dev build, maybe try it with a recommended one. or check if all your plugins are up to date.
     
  7. Offline

    simpsda

    heroiccraft.com <-- using
    lemoncraft.com <-- will use
     
  8. Offline

    Jay98d

    Help, when guests use /apply <thepassword> It says "You were promoted to [Member] successfully" Then Nothing Happens! What am i doing wrong???
     
  9. Offline

    TOdkommt

    What permissions Plugin do you use?
     
  10. Offline

    Jay98d

    I thought it would have something to do with that but anyway it's Group manager?
     
  11. Offline

    TOdkommt

    i dont know why it doesnt work. i just checked the code but it seems correct, and i havent heard that problem from other useres either. could you post a log?
     
  12. Offline

    Jay98d

    [INFO] [ThumbsApply] Loading ThumbsApply v3.1.
    2012-02-29 17:15:48 [INFO] [ThumbsApply] GroupManager System activated.
    2012-02-29 17:15:48 [INFO] [ThumbsApply] Groups Loaded:
    2012-02-29 17:15:48 [INFO] - User in world world with method ModulePassword and value build
    2012-02-29 17:15:48 [INFO] - Mod in world world with method ModulePassword and value %1000
    2012-02-29 17:15:48 [INFO] [ThumbsApply] Loaded Localization.
    2012-02-29 17:15:48 [INFO] [ThumbsApply] Started tick thread with tick delay 6000.
    2012-02-29 17:15:48 [INFO] [ThumbsApply] Loading process completed.

    Nothing unusual? Could it be something i haven't done?

    So?
     
  13. Offline

    TOdkommt

    first off, you should delete the Mod: %1000 from the config. second, you need to put your group name (in this case Member as i can tell from your post) instead of User, like so: "Member: build". if that still doesnt work, please post a log from the moment when you enter the password.
     
  14. Offline

    sakajoao

    where do i put the password? i am confused... -.-
     
  15. Offline

    MinecraftDaemon

    is the timed promotion module outdated? because it doesnt work with the atest dev build but thumbs apply works without the module installed please update it
     
  16. Offline

    TOdkommt

    please post an error log.
     
  17. Offline

    MinecraftDaemon

    [INFO] [ThumbsApply] Enabling ThumbsApply v3.1
    2012-03-05 16:05:54 [INFO] [ThumbsApply] PEX System activated.
    2012-03-05 16:05:54 [INFO] Loaded ThumbsApply module: ModuleTimedPromotion
    2012-03-05 16:05:54 [INFO] [ThumbsApply] Groups Loaded:
    2012-03-05 16:05:54 [SEVERE] Error occurred while enabling ThumbsApply v3.1 (Is it up to date?)
    java.lang.NullPointerException
    at me.Todkommt.ThumbsApply.Messaging.localize(Messaging.java:75)
    at me.Todkommt.ThumbsApply.utils.ThumbsApplyModule.localize(ThumbsApplyModule.java:86)
    at me.Todkommt.ThumbsApply.modules.ModuleTimedPromotion.onLoad(ModuleTimedPromotion.java:125)
    at me.Todkommt.ThumbsApply.ThumbsApply.loadGroups(ThumbsApply.java:153)
    at me.Todkommt.ThumbsApply.ThumbsApply.onEnable(ThumbsApply.java:81)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:363)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:531)
    at org.bukkit.Bukkit.reload(Bukkit.java:174)
    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:461)
    at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:457)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:599)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:568)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)

    There's The Error
     
  18. Offline

    TOdkommt

    finally found the mistake. the latest download should work now.
     
  19. Why is that not updatet -_- but that has only worked with 1.0, lol? :p
     
  20. Offline

    TOdkommt

    it has been the whole time, as posted many times before...
     
    Royalgamer06 and xDjBomber like this.
  21. Offline

    Freakdk

    @TOdkommt
    I'd really love to see a feature that would allow promotions through signs, just like this plugin did before it was discontinued :)
    http://dev.bukkit.org/server-mods/signrank/

    Then you could kind of "force" players into completing a quick turtorial, before they could click the sign and get promoted.
     
  22. Offline

    XNinjaSheepX

    Hi, I tried to get it working last night but it does not work, when a player writes /apply 12345 (12345 being the password) a text appears that he has been promoted to "Newbie" (which is the next rank) successfully, but he is still a Guest.
    Also, there is no welcome message...

    Please help, I don't understand what I am doing wrong...

    AHA! I got it working now, I just misspelled my world name in the config file... silly me, BUT, I still cant get the welcome message to show for some reason even though I have it enabled in the config....

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

    Reteckz

  24. Offline

    TOdkommt

    the join message is a bit bugged right now.
     
  25. Offline

    aviator14

    I feel like I should know by now that you'd make a big deal about it if it did so, but I only just now considered this, since the plugin doesn't seem to keep track of promotions anymore (I have a stubborn admin who uses /apply to demote himself to player whenever I add a donator symbol to his name), and by my understanding of the world-group feature a person can be set to be set to a certain group in a certain world regardless of what world they are currently in. Under those conditions, does this mean that it is now possible to set conditions for multiple promotions?
     
  26. Offline

    TOdkommt

    you probably havent given the group.<groupname> permissions to your groups, e.g. group.Mod to the group Mod etc.

    And yes you can set conditions for multiple promotions, in the default config there is an example for promoting a guest to User after entering a password, and to Mod after being online for 1000 minutes.
     
    aviator14 likes this.
  27. Offline

    aviator14

    I'm using groupmanager so I didn't think I needed that, but I'll give it a try, thanks!

    Thank you thank you thank you! :D zeoldcraft.com is happier than ever to be using this
     
  28. Offline

    TOdkommt

    its needed in all permissions plugins, I just generalized that to make it more convenient.
     
  29. Offline

    joshuaph

    How do you change the password XD
     
  30. Offline

    TOdkommt

    PLEASE read the config section of the thread before asking...
     

Share This Page