Inactive [ADMN/MISC]ReferGift v1.0.9 - Refer a friend & receive a gift![BROKEN] [1.4.6 - R0.3]

Discussion in 'Inactive/Unsupported Plugins' started by TopGear93, Mar 15, 2012.

  1. Offline

    Superboop

    I'm not sure how the:

    chat:
    switch: true
    chatshutoff:
    switch: true
    welcomemessage:
    switch: true

    works. It's not described really on the post, so I have no idea what these are. What do they do?
     
  2. Offline

    TopGear93


    chat:switch: true
    This will make /chat on automatically fire after the player uses /notreferred or /referredby

    chatshutoff:switch: true
    When this is set true, new just joined players will be kicked from chat. They wont see the chat and they cant chat. This was implemented to stop loopholes.

    welcomemessage:switch: true
    When this is set to true, all returning players will receive a welcome message. When this is false they wont get the message.

    money:switch: true
    When this is set true then the player will receive money instead of blocks.
     
  3. Offline

    Superboop

    Ah, makes sense. Thanks.
     
    TopGear93 likes this.
  4. Offline

    linkicecold3000

    How do you make it so that you can give people an item for referring someone? like instead of just the iconomy reward. also how do i remove someone from the list 'cause i want to test it
     
  5. Offline

    ryvix

    Your source code link is broken. :oops:
     
  6. Offline

    c0mp

    Locked and moved to Inactive
     
  7. Offline

    TopGear93

    v1.0.7 - Engine Update
    • Fixes deprecated chat system. Everything should be fine for 1.3.1
    • Fixes chat boolean false to true.
    • adds permission node for chat enable. look above for changes
    • Fixes command issues for rg & chat. look above for changes.
    • Adds new config node. look above for changes
    • New major features inbound for 1.0.8
    Download:
    https://dl.dropbox.com/u/1015938/plugins/ReferGift.jar
     
    kahlilnc likes this.
  8. Offline

    gustebeast

    This is what I got when I ran this on the recomended craftbukkit 1.3 build.
    Code:
    14:17:08 [SEVERE] Could not load 'plugins/ReferGift.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: us/topgear93/refergift/ReferGift : Unsupported major.minor version 51.0
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:155)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:222)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:198)
        at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(ServerConfigurationManagerAbstract.java:50)
        at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11)
        at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:105)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:380)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.UnsupportedClassVersionError: us/topgear93/refergift/ReferGift : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144)
        ... 9 more
     
  9. Offline

    TopGear93

    gustebeast ah that error again. That is from an improper version of java. Ill try to get jdk v1.6.

    Try downloading again. I built the plugin on JRE6. Hopefully the error is gone now, if not let me know and ill continue to figure it out.

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

    gustebeast

    I used the dl link under the 1.0.7 update post and got the same error. Should I update java or something?
     
  11. Offline

    TopGear93

    yea try updating java.
     
  12. Offline

    gustebeast

    done, same error
     
    chopstick121 likes this.
  13. Offline

    tempoman27

    does it mean that i could refer everyone on the server and make millions?
     
  14. Offline

    TopGear93

    Sadly one of the biggest problems with ReferGift is that you can refer everyone that is currently on the server and make money. The plugin is meant so that when you refer a new person you can make money or receive a gift that way.

    ATM i need to figure out a way to correct the java version errors. My computer updated to the latest JRE and now it's difficult to switch back.
     
  15. Offline

    zecheesy

    TopGear93
    Could I get the source to this plugin? (your github link don't work)
    It would strongly improve my shallow knowledge in the java language.
    I sent ya a PM :)
    Thank you!
     
  16. Offline

    TopGear93

    I would strongly suggest learning from someone that actually knows what their doing. Ive got almost two years of experience and i haven't progressed much. ReferGift is horribly built and lacks a proper "engine". I would prefer to see someone take this over and do it right.

    here try and see if this works. If not then i guess were s.o.l. I went and deleted everything related to java and reinstalled java 6. It should work. Im not getting any errors when running this.

    https://dl.dropbox.com/u/1015938/plugins/ReferGift.jar

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

    gustebeast

    started right up, nice work muchacho
     
    TopGear93 likes this.
  18. Offline

    gtafan235

    Please respond, I cannot chance the amount given for refer. Every reload it resets back to 10.
     
  19. Offline

    TopGear93

    Which node? One of them or both?

    "refergift.referredby.moneyamount"
    or
    "refergift.notreferred.moneyamount"
     
  20. Offline

    Vladimire

    Players still can't chat after they've typed /chat on
     
  21. Offline

    TopGear93

    i had to change a few things with the commands. The OP shows all the latest news and updates for ReferGift


    To turn chat on-
    Command: /refer chat on
    Permission node: "refergift.chat"

    Confirmed features for v1.0.8

    This hasnt been released yet, nor even finished. I still need to do heavy testing on the authentication system.

    Official dropbox updater.**
    General bug fixes.
    Small noticeable changes.


    **ReferGift will check when a new version has been uploaded to Dropbox and auto download to a folder for manual install. You can also manually check if a new version has been released by using /refer update

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

    gustebeast

    sounds cool
     
  23. Offline

    TopGear93

    yea, I know theres other features that i should be focusing more on but i thought maybe id try something different.
     
  24. Offline

    gtafan235

    I cannot change the config file it just resets it self every time I change it and reload server
     
  25. Offline

    joehot2000

    could you add it so its only one gift per IP?
    i dont want people going on new accounts and giving themselves things.
     
  26. Offline

    TopGear93

    yea i could add this.
     
  27. Offline

    gustebeast

    I rebut this for two reasons.

    1. Anyone can change their IP using proxy's these days, it doesnt block people from getting on seperate accounts, it just makes it harder for them,

    2. Many many people refer other members of their family to the server. They have the same IP but that second account is a real player and you are blocking them from claiming so.
     
    TopGear93 likes this.
  28. Offline

    joehot2000

    hmm, ok.
    point taken.
    i see what you mean, though i think nocheat+ blocks proxies from entering.
    also, i definitley see what you mean about family, ok, thanks for telling me why you wont/dont do that.
    if you did, maybe an option in the config?
     
  29. Offline

    gustebeast

    idc if its an option.
     
  30. Offline

    Nic2555

    Hey i got can't fix the /chat on too. When the player type /chat on, it say ''unknow commands'' and when they type /refer chat on it say nothing. Just nothing. Like nothing happened in the chat, no ''unknow commands'' or anything else.
    Also when i try to change the chatshutoff to false, to desable it, the player still can't talk. Can you do something for me ?
    Thanks

    Nic.
     

Share This Page