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

    Elements11997

    in version 1.0.4, I let a new config generate, but this is all it generated
    Code:
    referredlist:
    - Flippier999 got referred by Ty_Colby
    - Elements11997 got referred by galactuskev
    notreferred: []
    nochatting:
    - christopher148
    - tjsail33
    thereferred:
    - flippier999
    - hyco117
    - elements11997
    - christopher148
    rewardsave:
    - catkids3
    - war378
    thereferrer:
    - ty_colby
    - catkids3
    - galactuskev
    - war378
    
    how do i make it so that new people can chat?

    Ugh, looks like I have to disable refergift until new version :/

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

    nhadobas

    Every time i do /reload the config resets back to the default, help?
     
  3. Offline

    TopGear93

    The only thing i can recommend is to try making a new config.

    1) shutoff server
    2)delete old config
    3)restart server

    The whole config is reset? Im not sure whats causing this either. I did quite a bit of testing before i sent this out and i wasnt able to find this. Ill take a look again and see what comes up.
     
  4. Offline

    nhadobas

    The only thing it keeps is the referredby and referrer, but the rewards and everything else are reset to default.
     
  5. Offline

    TopGear93

    im unable to replicate your issue. Could you send me a list of all your plugins. Ive had issues in the past with other plugins messing with ReferGift.

    after i release this next build ill be focusing on localizing ReferGift. That means ill need translators to help make language packages.

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

    Elements11997

    I have tried that multiple times, :/
     
  7. Offline

    gustebeast

    Guys you are starting to do what got TopGear pissed off in the first place. Dont just come on and say "this doesnt work" You need to follow the format he posted on the original thread so he knows whats happening wrong. Clearily he doesnt get these glitches on his computer so its an issue with compatibility not the plugin itself
     
    TopGear93 likes this.
  8. Offline

    TopGear93

    Place holder:

    Added-
    plugin metrics system (ReferGift)
    referrer rank gifts. There are 20 ranks. Each rank has its own material gift with amount. Its sub-id supported. Or you can have them recieve money instead which has a config amount.
    Moved config into its own package>>class.
    started adding arraylist storage. This will make it so you wont loose the locked/referred/etc.

    THIS HAS NOT BEEN ADDED! THIS IS FOR FUTURE INFO!
     
  9. Offline

    Elements11997

    There is a reason there is only 1 person actually using this plugin, >.<. Good idea, horrible execution.

    I'm having the same issue
    Honestly, you shouldn't be concerned about localization and metrics system when your plugin clearly has a major design flaw. This had so much potential, I'm guessing you learned Java yourself?

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

    TopGear93

    For the lazy ignorant people! look on my damn OP! if you have an issue use this format!

    Issues:

    Plugin wont work? Follow this form.
    • Plugin version your running
      -
    • Server version your running
      -
    • Java version your PC/server is running
      -
    • What did you do that caused this error? Be specific!
      -
    • Are you renting a server or are you dedicated? yes or no
      -
    • Provide photo evidence or possible video evidence.
      -
    • Getting a NPE? Any errors popping up in the console? Show me them within a
      -
      Code:
      
      
    if you find any -
    • Spelling issues
    • backward configs
    • bad permission nodes
    • or any other ridiculous issues post them here politely.
    Common errors while using my plugins:

    Lists not saving to correct location:
    • Fix - Stop server, delete config, restart server.
    Timer not working even though player used referring commands:
    • Fix - Stop server, delete config, restart server.
    Improper Version of Java.
    Show Spoiler
    Code:
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: us/topgear93/orepay/OrePay : Unsupported major.minor version 51.0
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:150)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:287)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:211)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183)
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.UnsupportedClassVersionError: us/topgear93/pluginclass/plugin: Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        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(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:139)
        ... 8 more[code][/spoiler]
    This "config reset" issue has been seen before. The only way to fix it is to know what plugins your running along with ReferGift! Essentials for some odd reason doesn't get along with /rg reload.

    For me, well ive never personally ran into this specific issue.

    Im running 1.2.5_R2 on a 1.6.2_03 java.
    Operating system - Windows 7 Ultimate x64 w/ x86

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

    gustebeast

    elements... just go home.
     
  12. Offline

    TopGear93

    v1.0.5final - Build update
    • updated for 1.2.5-3.0
    • added "behind the scenes" feature.
    • final update. I no longer have interest in updating refergift. I believe its fine the way it is. If i keep adding useless features then it will only cause performance issues.

    I really want to start another useful plugin. The only issues that should occur now is from bukkit build changes.
     
  13. Offline

    SUNNYSIDE11

    I rage quit this plugin quite a while ago because the permissions didn`t work with essentials group manager.

    If you fixed this bug plz tell me cus i would like 2 use this.
     
  14. Offline

    TopGear93

    I dont know if this works with group manager because i didnt build vault. Im using vault as a total gateway for both permissions and economy. I recommend talking to Sleaker

    http://dev.bukkit.org/server-mods/vault/
     
  15. Offline

    Sleaker

    this plugin doesn't necessarily need to use Vault for permissions, but the way it is using it simply check's bukkit's internal permission system directly, nothing more. This leads me to believe it's more likely that something wasn't setup in your perms 100%.

    FYI this is how TopGear93 is using Vault: https://github.com/MilkBowl/Vault/blob/master/src/net/milkbowl/vault/permission/Permission.java#L90

    which means if that returns false, then bukkit doesn't see that the player has the permission at all, which means it's not Vault, or this plugin failing.
     
  16. Offline

    TopGear93

    So i should use playerHas instead of permissions.has(player, "xxx");?
     
  17. Offline

    Sleaker

    no, you're doing it fine. What you're doing is identical to calling player.hasPermission() in bukkit which is what I generally tell people to use instead of using Vault for perms if they don't need group based stuff to prevent people from complaining about something not working and wrongly assuming it's Vault's fault when it has nothing to do with Vault.
     
  18. Offline

    Fluxty

    Can the ID's be used in other plugins?
     
  19. Offline

    TopGear93

    Yea if the plugins support sub-id. ReferGift is it's own plugin, so if what your saying is that " does refergift hook into other plugins?". Nope its doesn't, well at least not yet. I want to get my new plugin ("aiAdmin") up and going in a safe stable position so that i dont need to constantly switch between two plugins. Then ill add a API so adding sub-id will be easy for others.
     
  20. Offline

    TopGear93

  21. Offline

    Raymanic13

    Can you do a thing that checks for IP, so people that refer themselves off Alt accounts on the same IP can't actually refer.

    Sorry i sorta need it i host a cracked server.
     
  22. Offline

    TopGear93

    I never support "cracked" servers but this IP feature is something that i always wanted to add. Ill think about it becuase 1.0.5final is a "final" and was not meant to be continued.
     
  23. Offline

    a11111

    How do I turn off the chat lock? I'd like the refer message to appear when a player first joins the server (like it currently does) but I don't want the chat to be disabled at all. So if a player chooses to ignore the refer message, he can still start chatting like usual without being required to type /referredby or /notreferred. Is this possible?
     
  24. Offline

    TopGear93

    if you use a motd plugin send the players a message that says use /chat on to enable chat. Otherwise i havent reimplemented the timer system that makes the chat come back on if the user doesnt use /referredby or /notreferred

    Also i just checked the usage of Refergift and sadly only 50-55 servers on average use this plugin.

    http://mcstats.org/plugin/ReferGift

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

    a11111

    Please add an option in the config where we can choose if the chat is turned off at all. Most MC players don't really read anything so they'd completely skip over the "/type /chat on to enable chat," get confused and just quit.
     
  26. Offline

    TopGear93

    ok i will. gustebeast it looks like ill be adding the timers again. gustebeast im back for now. im not sure how long though. So if you need help with anything send a message.
     
  27. Offline

    Fluxty

    Problem:
    Player1 referred by Player2
    Player2 referred by Player1

    Why can they still refer each other?
     
  28. Offline

    GipsyKing

    Plugin does not even load :'(
    • Plugin version your running
      -v1.0.5
    • Server version your running
      -craftbukkit 1.2.5-r4
    • Java version your PC/server is running
      -1.6.0_31-b04
    • What did you do that caused this error? Be specific!
      -Deploy plugin and restart
    • Are you renting a server or are you dedicated? yes or no
      -Sorry I do not understand the terms: my server is rented, and I have root access and installed mc on my own.
    • Provide photo evidence or possible video evidence.
      -
    • 2012-06-18 17:09:34 [SEVERE] Could not load 'plugins/ReferGift.jar' in folder 'plugins'
    • org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    • at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:202)
    • at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:132)
    • at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:213)
    • at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:550)
    • at org.bukkit.Bukkit.reload(Bukkit.java:182)
    • 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:479)
    • at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:475)
    • at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:612)
    • at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:581)
    • at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    • at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    • Caused by: java.util.zip.ZipException: error in opening zip file
    • at java.util.zip.ZipFile.open(Native Method)
    • at java.util.zip.ZipFile.<init>(Unknown Source)
    • at java.util.jar.JarFile.<init>(Unknown Source)
    • at java.util.jar.JarFile.<init>(Unknown Source)
    • at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:190)
    • ... 12 more
     
  29. Offline

    TopGear93

    Thanks for finding another loophole. It looks like i need to find a fix for this.

    I cant replicate this issue. From where are you renting this server? The error is caused by it being in a zip file ("Caused by: java.util.zip.ZipException: error in opening zip file").
     
  30. Offline

    GipsyKing

    Sorry, my mistake, I just did wget (your download link), and I guess I saved the download.php page.

    It would be great if you could make Vault dependency optional :)

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

Share This Page