[MISC] Suggestions v1.0b - Know what your players want [1337]

Discussion in 'Inactive/Unsupported Plugins' started by Cabbage, Jul 31, 2011.

  1. Offline

    Cabbage

    Suggestions
    Take suggestions from your users
    version: 1.0b​
    This plugin makes it easy for your users to say what they would like to see on the server.
    Based on this request in the request forum.
    It stores players' suggestions in a .txt file found in plugins/Suggestions/.​
    The commands as of now are: /suggest, /suggestion and /sug, all taking any additional arguments, forming the suggestion out of it and saving it with the player's name in the file.​

    features:
    • Take players' suggestions with a simple command
    • Less people spamming you in chat :D
    • Easy to use
    to-do list:
    • permissions & groups support
    • limit suggestions per player per time (based on ^)
    • tags (like "/sug nether Can't we enable placing water in the nether? There is a nice plugin for that on the Bukkit forums" would save the suggestion with the tag nether for clarity & organisation)
    • config file (obviously, for permissions, limits and stuff)
    changelog:

    fixed issues with getDisplayName()

    v1.0 [1000]
    initial release/submission


    DOWNLOAD:
    source will be added when I figure out GitHub ^^
    ~Cabbage​
     
  2. Offline

    Aidan Jones

    This was just what I needed. Thanks a lot!:)
     
  3. Offline

    Buckethead

    version bukkit 1317

    Code:
    20:47:19 [SEVERE] Could not load 'plugins\Suggestions.jar' in folder 'plugins':
    java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:175)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:136)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:112)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.NullPointerException
            at java.io.FileInputStream.<init>(Unknown Source)
            at org.bukkit.util.config.Configuration.load(Configuration.java:88)
            at org.bukkit.plugin.java.JavaPlugin.getConfiguration(JavaPlugin.java:116)
            at me.cabbage.suggestions.Suggestions.<init>(Suggestions.java:26)
            ... 13 more
     
    SC_AL3X likes this.
  4. Offline

    Cabbage

    Should be working now :)

    Made a version which alerts in the console (therefore in log too) when a player suggests something, plus it should send messages to server operators. Works for me on my localhost but I don't have a chance to test it live with more people and admins online, could someone test it? It won't break the server, the exception is handled, just I am not quite sure if it can happen somehow with more people and don't want to release it if it does. One thing I know - it breaks with every reload (well, breaks... just until the admin relogs, it doesn't send them a message.)

    http://dl.dropbox.com/u/13095547/Suggestions-dev.jar, thanks :)
    please don't forget to rename it to Suggestions.jar, this is for the sake of Dropbox's public folder.

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

    Buckethead

    works fine even on reload :)

    however can ther be a perm node for the people who get the alert

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

    Cabbage

    yeh, when I figure permissions out, sure :)
     
  7. Offline

    Buckethead

    i get this every suggestion made in console. but suggestion is still loged in the suggestion file

    Code:
    17:48:30 [INFO] An exception occured while sending the alert. Type: null
    17:48:30 [INFO] Most likely we didn't find the player to send the message to :(
    
    and ty again
     
  8. Offline

    Cabbage

    Did you use /reload before this happened?
    Otherwise it might be a bug with the array, gonna rework the enlarging script...

    The link in the OP now points to a RC2, try it now :)

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

    Buckethead

    ? RC2
     
  10. Offline

    Cabbage

    release candidate n. 2
    just download from the OP and see if it works .)
     
  11. Offline

    Buckethead

    in 1337

    Code:
    17:42:48 [SEVERE] Could not load 'plugins\Suggestions.jar' in folder 'plugins':
    java.lang.reflect.InvocationTargetException
    
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
    
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:175)
    
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215)
    
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
    
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:136)
    
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:112)
    
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
    
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
    
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
    Caused by: java.lang.NullPointerException
    
            at java.io.FileInputStream.<init>(Unknown Source)
    
            at org.bukkit.util.config.Configuration.load(Configuration.java:88)
    
            at org.bukkit.plugin.java.JavaPlugin.getConfiguration(JavaPlugin.java:116)
    
            at me.cabbage.suggestions.Suggestions.<init>(Suggestions.java:26)
    
            ... 13 more
    
    works in 1240 though. so plz update with 1337 i guess
     
  12. Offline

    Cabbage

    that's really weird, does it happen every time? Didn't happen for me, and 1337 should not be different from 1240 concerning this plugin...
    does this happen every time you start the server? or how can I reproduce it?
     
  13. Offline

    spork981

    I get the same error too, with RB 1337. It does happen whenever the server is started, or has been /reload'ed.

    Strangely, Suggestions-dev.jar (Post #35) works fine, so I'll use that as a workaround for now.
     
  14. Offline

    Buckethead

    yes every start/reload
    ty i will try that
     
  15. Offline

    Cabbage

    Ok, I have restored the link in the OP to a version that should be stable, the problem is I haven't been home for three days now and the Eclipse on my netbook is a bit messed up. When I get home, I'm gonna do proper debugging, with testing on my server and stuff...
    Until then, please use the http://dl.dropbox.com/u/13095547/Suggestions-dev.jar one and remember to rename it to Suggestions.jar
    thanks .)
     
  16. Offline

    Buckethead

    TY woks perfect and great
     
  17. Offline

    Kuboken

    Dude I love this plugin and so do my new members on my server :D we are using it as an Appreciation submitter. to where they read what needs to be answered the do /sug {Answers here} works like a charm and save my players a lot of time.... now only if i did not have to go in the files to look at it :( *hint hint*
     
  18. Offline

    Buckethead

    it broadcasts them but yes i also would like a way to read them in game as well.
     
  19. Offline

    Buckethead

    Code:
    21:21:24 [INFO] the_master_pie tried to use command /sug jobs like jailers and bankers
    21:21:24 [INFO] the_master_pie suggested the following: jobs like jailers and bankers
    21:21:24 [INFO] An exception occured while sending the alert. Type: null
    21:21:24 [INFO] Most likely we didn't find the player to send the message to :(
    
    is this thing dead?

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

    Cabbage

    did that just happen today and the plugin was working fine before? was there a /reload or did the admin relog while the server was running?
    and no, I am working on a new version now, I'll see how it goes.
     
  21. Offline

    Buckethead

    i havent noticed till now. and i did a restart using remote toolkit. i guess its pretty much a reload. but its supposed to be a restart. i havent noticed it till now if its ever happened before. but it still gets logged in file
     

Share This Page