[INACTIVE]RedeemCodes V2.8.3 Iconomy Support![766][support CButD]

Discussion in 'Inactive/Unsupported Plugins' started by jordanske, Jan 19, 2011.

  1. Offline

    Phanku

    As I actually run this on a medium sized server I can tell you from experience that players giving the codes away is not really an issue. Most players, once they find the code, make other players go and find the code also. Yes, there is the small group of players who once they find a code share it. I have noticed, however, with that group of players that the code sharing generally stops when the entire group has it and then of course they make all the other users go find the code.

    I can see your point Neo, as it is a valid one, but I really don't see a need for it currently.
     
  2. Offline

    4am

    Wouldn't the better alternative be to generate a new code for each player that has beaten the dungeon? If you're going to regenerate a code after 5 uses anyway, shouldn't you generate a new code for each player and have the code be player-specific?
    --- merged: Feb 16, 2011 11:32 PM ---
    Mac Java works the same as other OSes, so this shouldn't be an issue, unless your folder permissions restrict write access...
     
  3. Offline

    jordanske

    i don't have much time the last days but i try to go back coding soon,
    and
    my monitor works again :D now everything is much easier to read etc. :D
    before i used my tv :p very hard to code.
     
  4. Offline

    skadabedop

    What permissions nodule controls what? Can all users use /redeem by default?
     
  5. Offline

    jordanske

    /redeem is by default
    this for permissions
    -RedeemCodes.Code /code command
    -RedeemCodes.Codep /codep command
    -RedeemCodes.RCode /rcode command
    -RedeemCodes.list //code command
     
  6. Offline

    jordanske

    i don't have time the last days, problems with school etc.
    i hope i can update it soon :D
    can someone test it for me? on newest version of bukkit?
    thanks :D
     
  7. Offline

    Oddstr13

    Code:
    2011-02-25 20:09:00 [WARNING] Using the stupidly long constructor com.bukkit.Jordanske.RedeemCodes.RedeemCodes(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of RedeemCodes to remove it! (Nothing is broken, we just like to keep code clean.)
    also, On namespaces - please do NOT use *.bukkit in your plugins.

    RedeemCodes v.2.6 iConomy
    Permissions 2.1
    CraftBukkit Build 432

    tested in this CraftBukkit version: /code and /redeem

    thank you for a great plugin! [​IMG]
     
  8. Offline

    jordanske

    thanks :D, i already read it :p i change it in next update.
     
  9. Offline

    Oddstr13

    same with CraftBukkit build 440

    and,
    Code:
    2011-02-25 20:42:50 [INFO] plugins/RedeemCodes/Redeem.Players (No such file or directory)
    i asume you work on windows? anyway, filenames are Case sensitive in linux

    Edit:
    happends when using /redeem
    Code:
    2011-02-25 20:48:17 [INFO] oddstr13 issued server command: code 1234 items 1 46 64
    2011-02-25 20:48:17 [INFO] Unknown console command. Type "help" for help.
    2011-02-25 20:48:32 [INFO] plugins/RedeemCodes/Redeem.Players (No such file or directory)
    2011-02-25 20:48:32 [INFO] oddstr13 issued server command: redeem 1234
    2011-02-25 20:48:32 [INFO] Unknown console command. Type "help" for help.
    
     
  10. Offline

    jordanske

    download the redeemcodes folder.zip
     
  11. Offline

    Oddstr13

    oh, i have the files, but RedeemCodes is trying to open "plugins/RedeemCodes/Redeem.Players" and not "plugins/RedeemCodes/Redeem.players"
    as i just said, linux is treating files and folders case sensitive, so the file "redeem" is not the same as "Redeem" or "REDEEM", while windows just dosn't care about that at all.

    a workaround for mac and linux users, untill you fix this is typing those commands in the same folder as craftbukkit.jar:
    Code:
    cd plugins/RedeemCodes/
    ln -s Redeem.players Redeem.Players
    all this does is making a symbolic link from "Redeem.Players" to "Redeem.players"
     
  12. Offline

    Phanku

    iConomy version is broken:

    CB#443
    iConomy Version 3.0

    When you try to use a code that should give money:

    2011-02-25 14:14:19 [SEVERE] Could not pass event PLAYER_COMMAND to RedeemCodes
    java.lang.NoSuchMethodError: com.nijikokun.bukkit.iConomy.Database.get_balance(Ljava/lang/String;)I
    at com.bukkit.Jordanske.RedeemCodes.newRCPlayerListener.onPlayerCommand(newRCPlayerListener.java:270)
    at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:150)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
    at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:651)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:601)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:595)
    at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  13. Offline

    jordanske

    @Oddstr13
    ok thanks next update i made everything good:p maybe no case .

    @Phanku
    the new iconomy update changed his api
    try to fix it asap!
     
  14. Offline

    Phanku

    Thank you very much.
     
  15. Offline

    Oddstr13

    @jordanske would you consider releasing the source code?
     
  16. Offline

    jordanske

    v2.7 released need a tester :D
    fast release
    fixed iconomy
    and some little bugs
    can't test it myself atm
     
  17. Offline

    Phanku

    Will do.. testing now

    Works beautifully on iConomy 3.0 build 444

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

    Phanku

    CB#493
    iConomy# 4.2
    Permissions# 2.5.1

    21:04:51 [SEVERE] PLAYER_COMMAND loading RedeemCodes v2.7 (Is it up to date?)
    java.lang.NoSuchFieldError: PLAYER_COMMAND
    at nl.trimbo.Jordanske.RedeemCodes.RedeemCodes.onEnable(RedeemCodes.java:45)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:414)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)

    On boot up.
     
  19. Offline

    jordanske

    updated! v2.8
    updated to CB-493
    updated to iconomy v4.3

    need proper test!
     
  20. Offline

    Phanku

    Testing now!!
    CB 493


    BTW: Love the new wget friendly links!!
    --- merged: Mar 4, 2011 11:39 PM ---
    I get no response from any command.
    I have * in my permission groups.

    The plugin says it loads.
    There is no errors.

    2011-03-04 16:38:36 [INFO] Starting minecraft server version Beta 1.3
    2011-03-04 16:38:36 [INFO] Loading properties
    2011-03-04 16:38:36 [INFO] Starting Minecraft server on *:25568
    2011-03-04 16:38:36 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-493-g8b5496e-b493jnks (MC: 1.3)
    2011-03-04 16:38:36 [INFO] Preparing level "world"
    2011-03-04 16:38:36 [INFO] Preparing start region
    2011-03-04 16:38:37 [INFO] [Permissions] version [2.5] (Phoenix) was Initialized.
    2011-03-04 16:38:37 [INFO] WorldGuard loaded.
    2011-03-04 16:38:37 [INFO] Starting Minequery server on *:25569
    2011-03-04 16:38:37 [INFO] LWC [v1.57] Loading shared objects
    2011-03-04 16:38:37 [INFO] Config [v1.57] Loaded 12 config entries
    2011-03-04 16:38:37 [INFO] LWC [v1.57] Native library: lib/native/Linux/i386/libsqlitejdbc.so
    2011-03-04 16:38:38 [INFO] ControllerBlock: 1.13 by Hell_Fire
    2011-03-04 16:38:38 [WARNING] ControllerBlock: Couldn't parse disallowed type LAPIS_LAZULI_ORE on line 86, it has been skipped
    2011-03-04 16:38:38 [WARNING] ControllerBlock: Couldn't parse disallowed type REDSTONE_TORCH on line 92, it has been skipped
    2011-03-04 16:38:38 [INFO] ControllerBlock: Using GOLD_BLOCK (41) as ControllerBlock, loaded 20 disallowed types from config
    2011-03-04 16:38:38 [INFO] ControllerBlock: Loaded v3 data - 5 ControllerBlocks loaded
    2011-03-04 16:38:38 [INFO] ControllerBlock: Enabling full redstone check
    2011-03-04 16:38:38 [INFO] ControllerBlock: Events registered
    2011-03-04 16:38:38 [INFO] Loading map 'org.dynmap.kzedmap.KzedMap'...
    2011-03-04 16:38:38 [INFO] Loading renderer 'org.dynmap.kzedmap.DefaultTileRenderer'...
    2011-03-04 16:38:38 [INFO] Loading renderer 'org.dynmap.kzedmap.CaveTileRenderer'...
    2011-03-04 16:38:38 [INFO] Activated world 'world' in Dynmap.
    2011-03-04 16:38:38 [INFO] Loading map 'org.dynmap.kzedmap.KzedMap'...
    2011-03-04 16:38:38 [INFO] Loading renderer 'org.dynmap.kzedmap.DefaultTileRenderer'...
    2011-03-04 16:38:38 [INFO] Dynmap WebServer started on null:8123
    2011-03-04 16:38:38 [INFO] [AfkBooter] version 0.4 is loaded.
    2011-03-04 16:38:38 [INFO] [AfkBooter] Kick timeout 540 sec, exempt players:
    2011-03-04 16:38:38 [INFO] [NoCheatPlugin] version [0.6.2] is enabled with the following checks: moving speedhack dupebydeath
    2011-03-04 16:38:38 [INFO] Take yourself wonder by wonder, using /magiccarpet or /mc. MagicCarpet version 1.4.4 is enabled!
    2011-03-04 16:38:38 [INFO] Setup() OK!
    2011-03-04 16:38:38 [INFO] SetupEconomy OK!
    2011-03-04 16:38:38 [INFO] [DynamicMarket] Standard Permission plugin enabled.
    2011-03-04 16:38:38 [INFO] [DynamicMarket] Standard Permission plugin enabled.
    2011-03-04 16:38:38 [INFO] [iConomy] Configuration Integrity Start:
    2011-03-04 16:38:38 [INFO] - System.Interest.FlatRate is null or missing, Defaulting to: 0.0
    2011-03-04 16:38:38 [INFO] [iConomy] Configuration Integrity End.
    2011-03-04 16:38:38 [INFO] [iConomy] Logging is currently disabled.
    2011-03-04 16:38:38 [INFO] [iConomy] v4.3 (Lind) loaded.
    2011-03-04 16:38:38 [INFO] [iConomy] Developed by: [Nijikokun, Coelho]
    2011-03-04 16:38:38 [INFO] Plugin name: iConomy
    2011-03-04 16:38:38 [INFO] Pluginname equals
    2011-03-04 16:38:38 [INFO] ConnectTmy
    2011-03-04 16:38:38 [INFO] IS Ic4, connecteconomy
    2011-03-04 16:38:38 [INFO] ConnectToiConomy
    2011-03-04 16:38:38 [INFO] [DynamicMarket] iConomy connected.
    2011-03-04 16:38:38 [INFO] [DynamicMarket] version [0.4.8.4] (arensirb) enabled
    2011-03-04 16:38:38 [INFO] Plugin name: DynamicMarket
    2011-03-04 16:38:38 [INFO] [HeroicDeath] 1.4.4.140 enabled.
    2011-03-04 16:38:38 [INFO] Plugin name: HeroicDeath
    2011-03-04 16:38:38 [INFO] [RedeemCodes V2.8] enabled.
    2011-03-04 16:38:38 [INFO] Plugin name: RedeemCodes
    2011-03-04 16:38:38 [INFO] PvP Control version 1.4 is enabled!
    2011-03-04 16:38:38 [INFO] Plugin name: PvP Control
    2011-03-04 16:38:38 [INFO] [Permissions] version [2.5] (Phoenix) loaded
    2011-03-04 16:38:38 [INFO] Plugin name: Permissions
    2011-03-04 16:38:38 [INFO] [iConomy] Successfully linked with Permissions.
    2011-03-04 16:38:38 [INFO] Minecart Mania Core version 1.01a is enabled!
    2011-03-04 16:38:38 [INFO] Plugin name: Minecart Mania Core
    2011-03-04 16:38:38 [INFO] BorderGuard Lite (Round) version 2.1 is enabled!
    2011-03-04 16:38:38 [INFO] Plugin name: BorderGuard Lite (Round)
    2011-03-04 16:38:38 [INFO] [MYHOME]: 113 homes loaded
    2011-03-04 16:38:38 [INFO] [MYHOME] Permissions enabled.
    2011-03-04 16:38:38 [WARNING] [MYHOME] 'Help' isn't detected. No /help support.
    2011-03-04 16:38:38 [INFO] MyHome 1.9.2 enabled
    2011-03-04 16:38:38 [INFO] Plugin name: MyHome
    2011-03-04 16:38:38 [INFO] iConomyChestShop version 0.8 is enabled!
    2011-03-04 16:38:38 [INFO] Plugin name: iConomyChestShop
    2011-03-04 16:38:38 [INFO] Plugin name: TorchBurn
    2011-03-04 16:38:38 [INFO] WorldEdit 4.0-beta8 enabled.
    2011-03-04 16:38:38 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-03-04 16:38:38 [INFO] Plugin name: WorldEdit
    2011-03-04 16:38:38 [INFO] [Netstats] v1.8 has been enabled.
    2011-03-04 16:38:38 [INFO] Plugin name: Netstats
    2011-03-04 16:38:38 [INFO] SlowHealth 2.3 enabled! Rate: 25.0s | Amount: 1
    2011-03-04 16:38:38 [INFO] | Max: 10
    2011-03-04 16:38:38 [INFO] Plugin name: SlowHealth
    2011-03-04 16:38:38 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-03-04 16:38:38 [INFO] WorldGuard: Single session is enforced.
    2011-03-04 16:38:38 [INFO] WorldGuard: TNT ignition is blocked.
    2011-03-04 16:38:38 [INFO] WorldGuard: Lighters are PERMITTED.
    2011-03-04 16:38:38 [INFO] WorldGuard: Lava fire is blocked.
    2011-03-04 16:38:38 [INFO] WorldGuard: All fire spread is disabled.
    2011-03-04 16:38:38 [INFO] WorldGuard 4.0-alpha1 enabled.
    2011-03-04 16:38:38 [INFO] Plugin name: WorldGuard
    2011-03-04 16:38:38 [INFO] Plugin name: Minequery
    2011-03-04 16:38:38 [INFO] Trivia 1.5 enabled
    2011-03-04 16:38:38 [INFO] [Trivia] loaded questions from [scramble.txt, questions.txt]
    2011-03-04 16:38:38 [INFO] Plugin name: Trivia
    2011-03-04 16:38:38 [INFO] Config [v1.57] Loaded 12 config entries
    2011-03-04 16:38:39 [INFO] LWC [v1.57] Loaded command: /lwc -admin
    2011-03-04 16:38:39 [INFO] LWC [v1.57] Loaded command: /lwc -create
    2011-03-04 16:38:39 [INFO] LWC [v1.57] Loaded command: /lwc -free
    2011-03-04 16:38:39 [INFO] LWC [v1.57] Loaded command: /lwc -info
    2011-03-04 16:38:39 [INFO] LWC [v1.57] Loaded command: /lwc -p
    2011-03-04 16:38:39 [INFO] LWC [v1.57] Loaded command: /lwc -modify
    2011-03-04 16:38:39 [INFO] LWC [v1.57] Loaded command: /lwc -unlock
    2011-03-04 16:38:39 [INFO] LWC [v1.57] Loaded command: /lwc -owners
    2011-03-04 16:38:39 [INFO] LWC [v1.57] -> PLAYER_QUIT
    2011-03-04 16:38:39 [INFO] LWC [v1.57] -> ENTITY_EXPLODE
    2011-03-04 16:38:39 [INFO] LWC [v1.57] -> BLOCK_INTERACT
    2011-03-04 16:38:39 [INFO] LWC [v1.57] -> BLOCK_DAMAGED
    2011-03-04 16:38:39 [INFO] LWC [v1.57] -> BLOCK_BREAK
    2011-03-04 16:38:39 [INFO] LWC [v1.57] -> BLOCK_PLACED
    2011-03-04 16:38:39 [INFO] LWC [v1.57] -> REDSTONE_CHANGE
    2011-03-04 16:38:39 [INFO] LWC [v1.57] Using Nijikokun's permissions plugin for permissions
    2011-03-04 16:38:39 [INFO] LWC [v1.57] Loading SQLite
    2011-03-04 16:38:39 [INFO] PhysDB [v1.57] Creating physical tables if needed
    2011-03-04 16:38:39 [INFO] MemDB [v1.57] Creating memory tables
    2011-03-04 16:38:39 [INFO] SQLite [v1.57] Using: Native
    2011-03-04 16:38:39 [INFO] Plugin name: LWC
    2011-03-04 16:38:39 [INFO] [rTriggers] Loaded: Version 0.6_7
    2011-03-04 16:38:39 [INFO] Plugin name: rTriggers
    2011-03-04 16:38:39 [INFO] [iChat] Using Permissions 2.5 for permissions
    2011-03-04 16:38:39 [INFO] iChat (v2.05) enabled
    2011-03-04 16:38:39 [INFO] Plugin name: iChat
    2011-03-04 16:38:39 [INFO] CommandBook 1.0 enabled.
    2011-03-04 16:38:39 [INFO] CommandBook: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-03-04 16:38:39 [INFO] Plugin name: CommandBook
    2011-03-04 16:38:39 [INFO] Vanish 1.5 loaded.
    2011-03-04 16:38:39 [INFO] Plugin name: Vanish
    2011-03-04 16:38:39 [INFO] MCDocs - Permissions Detected!
    2011-03-04 16:38:39 [INFO] MCDocs by Tazzernator (Andrew Tajsic) - version 5.2.2 is enabled!
    2011-03-04 16:38:39 [INFO] Plugin name: MCDocs
    2011-03-04 16:38:39 [INFO] Stargate v.0.17 is enabled.
    2011-03-04 16:38:39 [INFO] [Stargate] Loaded 14 stargates with 0 set as always-on
    2011-03-04 16:38:39 [INFO] [Stargate] Using Permissions v2.5 for permissions
    2011-03-04 16:38:39 [INFO] Plugin name: Stargate
    2011-03-04 16:38:39 [INFO] SignLift version 0.6 is enabled :)
    2011-03-04 16:38:39 [INFO] Plugin name: SignLift
    2011-03-04 16:38:39 [INFO] Done (0.308s)! For help, type "help" or "?"
    2011-03-04 16:38:42 [INFO] 143 recipes
    2011-03-04 16:38:43 [INFO] ***** [/96.240.165.44:51771] logged in with entity id 51
    2011-03-04 16:38:43 [INFO] Loaded world: world
    2011-03-04 16:38:43 [INFO] Loaded world: world
    2011-03-04 16:38:47 [INFO] ***** issued server command: lcode
    2011-03-04 16:38:47 [INFO] Unknown console command. Type "help" for help.
    2011-03-04 16:39:53 [INFO] ***** issued server command: code
    2011-03-04 16:39:53 [INFO] Unknown console command. Type "help" for help.
    2011-03-04 16:40:01 [INFO] ***** issued server command: codep
    2011-03-04 16:40:01 [INFO] Unknown console command. Type "help" for help.
    2011-03-04 16:40:39 [INFO] ***** issued server command: code t item 0 264 40
    2011-03-04 16:40:39 [INFO] Unknown console command. Type "help" for help.
    2011-03-04 16:40:58 [INFO] CONSOLE: Stopping the server..
     
  21. Offline

    jordanske

    I gonna fix it asap!
     
  22. The reason for that is that commands have to be stated in plugin.yml as following
    commands:
    code:
    description:
    usage:
    codep:
    description:
    usage:
    rcode:
    description:
    usage:
    lcode:
    description:
    usage:
    redeem:
    description:
    usage:
    redeeminfo:
    description:
    usage:

    Notice that they should be intendented as standard yaml!
     
  23. Offline

    jordanske

    i think its fixed now
     
  24. Nope, alot of bugs as said in the discussion with you.
     
  25. Offline

    jordanske

    i hope its fixed now
     
  26. Offline

    Phanku

    Working beautifully now.!!
     
  27. Offline

    iPWNtehN00B

    Hey there, just wondering if it would be possible to use a code to upgrade regular
    users to Mod or Admin, and how would I do it?

    Thanks.
     
  28. Offline

    sirkusaakkonen

    Player cooldowns would be a great thing. Add cooldown = [seconds] option into the config file so players can use the same code again after a while.
     
  29. Offline

    jordanske

    back from vacation, :D
    i will update to latest version of CB and look for new features.
     
  30. Offline

    Jinivus

    Feature suggestion:
    • Implement MySQL support so that I could generate random codes via through a web page and have them work ingame
    This would be awesome as it would allow me to integrate, say for example, after forum registration new users are generated new one time use codes for a "starter kit" to be used on the server.
    Anyway, just a suggestion. It's a great plugin as it is!
     

Share This Page