[ADMIN/MECH] SummaCodes v1.10 - Simple, easy and flexible redeemable codes [1.2]

Discussion in 'Inactive/Unsupported Plugins' started by Hidendra, May 22, 2011.

  1. Offline

    Hidendra

    SummaCodes v1.10

    Download
    http://griefcraft.com/bukkit/summacodes/release/SummaCodes.jar

    Source
    https://github.com/Hidendra/SummaCodes

    SummaCodes is a plugin that handles "redeem codes." It uses Bukkit's built in persistence database, so it can be configured to use SQLite (default) or MySQL via bukkit.yml

    Codes can be configured to give items and iConomy money. Codes can also be configured to expire at a set time (e.g in 5 hours, or 10 minutes, or 5 seconds, or 1 month, and so on.)

    Usage


    Commands

    Features

    Permissions
    Regular usage:
    Admin usage:

    Changelog
    1.10
    • 1.2 support
    • Vault support
    1.00
    • Initial release

    enjoy.
     
    Juze, bconnerly and Taranis01 like this.
  2. Offline

    halvors

    Would be nice if you add an option to display an info message to player on join. Like "You have one new redeem code."
     
  3. Offline

    Hidendra

    The codes aren't transparent to the players: only the admins can view what the code names are.

    It's more geared towards codes that can be given out to players that only work once for them (e.g kits, events (such as a treasure hunt or something, where the code only has 1 use for anyone at all), etc.)

    It was done for a friend, so it may not be as configurable as people would want at the moment (although it does seems great for the purposes listed above at the moment)
     
  4. Offline

    CainFoool

    I am using this plugin and it works great, thank you Hidendra.
    However you should also add the option to make it easier like by

    /createcode test diamondpick 1;diamondaxe 1; 10 minutes
     
  5. Offline

    Wahrheit

    After much waiting, one that actually works. So excited to use this with everything.
     
  6. Offline

    4am

    I've been waiting to see a redeem code plugin that can modify player permissions (change player's group, add a node to their permissions, hell even add a node to group permissions so factions can win prizes - basically do anything with Permissions based on a code). Is such a thing possible?
     
  7. Offline

    Wahrheit

    It would be easier to do that from just a command with rTriggers, or as I have in my tutorial you could use TriggerCmds and rTriggers to create a physical entity that performs that on press.

    mc.summaxr.com:27265 to see for yourself. :p
     
  8. Offline

    4am

    But would entering the code trigger that? Or would this give a code as the result of an action? I want the user to enter a code to get a permission assigned; possibly for a limited time.
     
  9. Offline

    Daniel Few

    I love the idea of this. Will definatly try it to hand our rewards for special events etc.
    Thanks,
    -DanJames
     
  10. Offline

    Plague

    changelog is missing (even for first version, it provides a placeholder)
     
  11. Offline

    Hidendra

    Thanks -- knew I was missing something :p

    Indeed, good idea

    Interesting idea -- I don't see why it wouldn't be possible
     
  12. Offline

    Plague

    Aaand it cannot be in a spoiler (ohly 3 and more changes back can)
    moved
     
  13. Offline

    4am

    Have you tested this against chat plugins like iChat and HeroChat to be sure that their chat preprocessing doesn't interfere with create mode? Seems to me that not taking input in explicit commands (i.e. /codes add AwesomeKit diamond 1, or even /codes add diamond 1 if you're locked into a certain code while creating) could be misunderstood as messages to a channel (and the action potentially cancelled) in the event that one of these grabs the chat input before SummaCodes does; however if you're issuing commands instead of straight chat, these plugins ignore the input knowing that you meant it for something else. As convenient as it is to just type what you want, you could be introducing unintentional plugin fights over events.

    I'd recommend reworking that as opposed to the quick fix of making your event priority higher; see the way EpicZones lays out commands that only work in create mode for a good example.
     
    LegendarySandwich likes this.
  14. Offline

    Jonathan Thorpe

    Looks like a good plugin... suggestions? Sure.

    • BOSEconomy support
    • Sign support - ability to paste codes onto signs using placeholders such as [SummaCode] on the first line, then [CodeName] on the second line. This means you could create codes as rewards for navigating an area to the end, where the sign informs the player of the reward code. As soon as the code is used, it is possible to generate a new code with the same name, and all signs with that code referenced would update automatically.
     
  15. Offline

    4am

    Why can't you just place a sign with the code on it?;)
     
  16. Offline

    MatCat

    Works with iChat on my server... I actually love the idea but it will be prone to conflict.
     
  17. Offline

    Wahrheit

    With what? From what I understand it overrides anything that would get in its way and so it shouldn't interfere.

    He wants them to have to click the sign to get the code activated, people would just make compendiums.

    Better idea, use rTriggers and TriggerCmds yet again! :D
     
  18. Offline

    Jonathan Thorpe

    Because in my post I said that the code would be a one-time code that would change once it was used, so the sign would need to be updated with the new code each time the old one was claimed. Having a placeholder for that code name would mean that once the code has been used, a new one would be generated with the same name, and all signs with that code's placeholder would be updated automatically. This way you could create zones with a reward code at the end that would renew itself each time the zone is completed.
     
  19. Offline

    Wahrheit

    That could be a little resource heavy and sounds like something another plugin would do... speaking as the person who requested it this was designed to handle rewarding users who are active at certain times in certain areas (specifically our radio, IRC mumble etc) with a little something for staying involved.

    What you're looking for sounds like a sign that just gives out a kit each time, which can also be achieved with rTriggers and TriggerCmds. :D
     
  20. Offline

    Jonathan Thorpe

    I'm not actually looking for anything. I requested TriggerCmds, and yes, you could achieve it easily using that plugin. But I thought it would be good if this plugin could also do something like that, specifically for redeemable codes. I don't use this plugin, but can see lots of potential in it for PvP mazes, dungeons, etc.
     
  21. Offline

    bconnerly

    Love this plugin!
    I design/build dungeons, and I'm using this plugin in conjunction with a scrolling signs plugin, to reward players in my dungeons.
    For instance:
    I hide a chest in my dungeon.
    Create a code [lootchest1] that rewards the player with food, armor, weapons etc..
    I attach that redeem code to an SMS sign (right above the hidden chest)
    So player finds chest.
    Punch sign.
    Get loot.

    Now I don't have to go reset the loot after every player!

    One thing I really need though, is to be able to reset the codes.
    It's great that it can distribute loot 10k times, but after a player has completed the dungeon, I would like them to be able to reset their codes and play it again.
    As of now, each person on my server can only go through the dungeon once! :( (if they want any loot that is)

    Can this feature be added?
    Maybe there is a different plugin that better fits my needs?
     
  22. Offline

    sfxworks

    Could I have the server auto-generate one with a script?
     
  23. Now what would be really cool is if there was a way to integrate this into PayPal to create donation incentives (or RMT item markets) that are redeemable by the player and don't require admins or mods to constantly check all the time.
     
  24. Offline

    Devian50

    uhh... I think Multiverse may be grabbing chat input to add the world to the beginning of the name... The /codes create aint takin input...
     
  25. Offline

    Verex

    Is there any way I can make this so it uses MySQL? I really need it, thanks!
     
  26. Offline

    Taranis01

    @Hidendra

    just asking if there will be an update to 818/860 ?
     
  27. Offline

    derrickvi

    Suggestion!
    The option to change permissions. It would be neat to be able to make a code that gives a user a particular permission node or changes their group. Think of the possibilities!

    Edit: Oops, didn't notice someone else suggested the same thing. Well, I am seconding that suggestion. :3
     
  28. Im currently (for testing) only running Summacodes v1.00 and i receive the below errors on bukkit 860

    Code:
    02:38:57 [SEVERE] ebean.properties not found
    02:38:58 [INFO] DataSourcePool [SummaCodes] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    02:38:58 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    02:38:59 [INFO] Entities enhanced[0] subclassed[1]
    02:38:59 [INFO] -> PLAYER_CHAT
    02:38:59 [INFO] -> PLAYER_QUIT
    02:38:59 [INFO] RedeemCodes enabled: 1.00-rc1
    
     
  29. Offline

    Zixt

    Is there some sort of API that could allow a web based script to create a one time use only code in a MySQL db?
     
  30. Offline

    godgodgodgo

    for the ebean.properties you just create an empy file with that name.
     

Share This Page