[ADMN] Spawn List 0.10 - The Original Powerful Item Spawning Plugin [1060]

Discussion in 'Inactive/Unsupported Plugins' started by lego6245, Jan 25, 2011.

  1. Offline

    lego6245

    SpawnList: Take Back Item Spawning!
    Version RC1.0 -"Where the hell have you been, SuperPerms?" edition.​



    ChangeList:
    Code:
    Vrc1.0: Updated for 1.7.3! SuperPerms! New Group System! I should update more!
    V0.9.2: Fixed a second stupid.
    V0.9.1: Fixed a stupid.
    Vo.9: Fixed a few bugs. Changed how inheritance works. By the way, it works.
    Vo.8: 1.5 update. I know I've fixed that bug now!
    V0.7.3: Removed horrible inheritance. Added 1.4 items
    V0.7.2: Less annoying puke, possible allowed fix.
    V0.7.1: MOAR FIXES!!!1!!1!111!2!!!one!!
    V0.7: Added /give. Hopefully fixed a bug.
    V0.6: Changed Packages. Actually fixed things :3
    V0.5: Thought I fixed a bunch of things.
    V0.4: new onCommand format. slreload works from console. New enable/disable message.
    V0.3: Added /slreload command. Added a toggle for the warning message. Cleaned up some language.
    V0.2: Fixed spawning by number, added function to designate number of items spawned by default, changed default to 1.
    V0.1: Release
    Ladies and gentlemen, it is the return of item spawning as it once was! Take back control of your user's item spawning habits with SpawnList, the Bukkit ready version of GroupSpawnlist, readapted and ready to go! I created this plugin because as far as I could see there was no way to properly regulate item spawning in terms of what items your users could spawn. This plugin builds upon the item whitelist of hMod by adding these features:
    • Additive or Deductive spawning! (Give a list of items you either want users to spawn or NOT want users to spawn)
    • Permissions support! (Designate different spawn lists for each group!)
    • It's own /item command!
    • Reload without restart, now from console and in-game!
    • Inheritance!
    I hope that this will become your most used plugin. A few reminders in order to make this the best possible:

    • You will need to disable any other /item commands that may exist in plugins like Essentials. Failure to do so might cause your users to get double the items they want.
    • You will need to configure your config.yml file according to a few rules, which I will outline.
    • Inheritance works as thusly: Parent group overrules children, but once it's true, it's done. Allow me to explain. If group A inherits groups B and C, then group A's policies will overrule groups B and C. However, if group B or C can spawn an item, then it is assumed that group A can spawn it as well. Keep this in mind.
    • There is a new system for groups with the new superperms. If you use super perms, listen up! You need to define in your config.yml file the world, then the user, then the group. Groups can also have children. See the new config file style below, and respond with any questions.
    Now, for the DL link, but first, if you like the plugin, Donate! Donators get access to my dropbox folder which contains everything I work on, including a few plugins that have never been released! Any amount is fine. Here are the links: Donate, Jar + Zip, Jar Only (Experimental)!


    To configure:
    • If you are using the Permissions plugin, here are the permissions used by Spawnlist:
      • spawnlist.item - Access the /item command
      • spawnlist.canspawnanything - If the user can spawn anything they want
      • spawnlist.spawnlisted - If you want the /item command to check the spawnlist for this user dead as of RC1.0 (why did I have this to begin with?)
      • spawnlist.reload - For users to have access to the /slreload command
      • spawnlist.give - Access to the /give command
    • In the config.yml file, the format is this:
    Code:
    default-stack-size: 34 #change the default spawning amount
    
    show-warning: 1 #show warnings, 1 = yes, 0 = no
    superperms: false #change to true if you want to use superperms!
    default: #leave this no matter what
    allowed: #can be allowed or disallowed (NOT BOTH)
      - 1 #list numbers here
      - 2
      - 3
      - 4
     children:
       #children go here (try it out for me! only needed for superperms!)
    #other groups here (LOWERCASE)
    
    Remember, please post in this thread if the plugin works/doesn't work/makes you happy/sad/upset/laugh. I less then three feedback

    Lego6245 of enigmasm.com
     
  2. Offline

    Michael Murphy

    within my permissions plugin's config I have allotted
    spawnlist.spawnlisted and spawnlist.item for a "VIP" group. when I logon with a character from the Vip Group and try to use /item, it tells me that I do not have access to the /item command. As far as I'm aware I don't have any other plugins that modify or have their own /item hook. What am I doing wrong?
     
  3. Offline

    Mif

    So I just tried it with the latest bukkit and craftbukkit builds. Still can't get it to work right with essentials turned on, even if item and i are in the disabled commands area of essentials config.

    Works without.... somewhat. trying to use "disallowed" instead of allow in the config results in all items being blocked, versus specific ones.
     
  4. Offline

    lego6245

    What I think is going on with essentials is that it's intercepting things before I can even get to them, so it's just killing the command and not letting it be past. Very, very, VERY bad practice on their part, and you should let them know that with a very angry letter. As for the disallowed. thing, I'll check that.
     
  5. Offline

    rct2guy

    Talked to the guys that work on the plugin. They said...
    When he says splitting out, he means separating it into a different plugin (which Essentials did with Warps, Spawn, etc.) to avoid conflicts if people want to use other plugins.
     
  6. Offline

    Deminetix

    Just a quick kudos to you for creating this plugin! Good work!
     
  7. Offline

    lego6245

    ... Seriously. This sort of talk makes me mad. It's not too complex to do, and if you are going to force yourself automatically to the top of the processing stack you better dang well be able to do it.

    In the meanwhile, I'd suggest you drop Essentials and try General, see if that works better. It's been around longer, and it has most of the same features.

    Rename my command... HA! HA!
     
  8. Offline

    rct2guy

    I tried General, and it just doesn't have the commands I need that Essentials does. D:
     
  9. Offline

    Mif

    I hate to say it, but Essentials has over 100 pages of posts, and a LOT of server admins are using it. General does offer some of the same functionality, but no where near the same. Since you seem to be the only plugin for item blacklisting, wouldn't it make sense to work with them rather than just balk at them suggesting to rename your command?

    Work with them, find a solution!
     
  10. Offline

    lego6245

    I considered that. Problem with doing that is I lose individual credit for my work. But, I suppose my pride is not worth it. It's just infuriating that they refuse to make any provision for anyone else. Rename the command and inconvenience everyone who uses the plugin just so they don't have to write a few lines of code. But I digress. I'm going to talk with them now.
     
  11. Offline

    Phaedrus

    I just got rid of Essentials entirely. It's too much hassle. It grew too big and too unwieldly. It defeats the purpose of an independent plugin system if a single plugin starts to absorb all manner of functionality. Essentials is a bit of a misnomer when it includes every command imaginable. /rant

    Anyway, there are alternatives out there for everything that essentials does, and they are generally more powerful and more flexible. Permissions, ichat, myhome, mywarp, teleplus, mcdocs, kitplugin, spawncontrol, etc.
    --- merged: Feb 19, 2011 2:31 PM ---
    Feature Request

    Can you add an optional maximum item spawn amount at a time for each item? And also maybe a cooldown period before it can be summoned again?

    For example, in the allow/disallow listing you could specify the item number followed by the maximum amount you want them able to spawn.

    Username/group
    allow:
    - 1 64 300
    - 66 10 600

    So the first line says they can spawn 64 smooth stone every 300 seconds (5 minutes) and the second says they can spawn 10 of item 66 every 600 seconds.
     
  12. Offline

    lego6245

    @jasonznack I'll add that after I get 0.6 out which will fix some things once and for all :3

    On that note, I just got back from vacation. More updates incoming.
     
  13. Offline

    Phaedrus

    [​IMG] looking forward to it. hope you had a good vacation, now get back to work!
     
  14. Offline

    lego6245

    Updated to version 0.6
    Fixed. That disallowed bug. Thanks for your help with that.
    Changed the package to enigmasm because I now own the EnigmaSM domain :3
    --- merged: Feb 24, 2011 12:24 AM ---
    Oh, and I forgot! Added 1.3 items to the spawning by name too!
     
  15. Offline

    Phaedrus

    Minor thing, but....
    2011-02-24 00:43:04 [WARNING] Using the stupidly long constructor com.enigmasm.s
    pawnlist.Spawnlist(PluginLoader, Server, PluginDescriptionFile, File, File, Clas
    sLoader) is no longer recommended. Go nag the plugin author of Spawnlist to remo
    ve it! (Nothing is broken, we just like to keep code clean.)
    Nag :p
     
  16. Offline

    MineJob

    Kind of a noob question. I've been using hMod before but since that's outdated now and me really wanting a updated server mod, I started using Bukkit. Now since there is also colored wool, which would like to build with, how exactly do you spawn yourself colored wool. I saw on the forum it should be like /item 35^colorid.

    Now I'm not sure. Anyone that could kindly answer my question?
     
  17. Offline

    flames

    there are exception errors in console when you use unknown items http://pastie.org/1603974
    and ingame chat: "An internal error occured while attempting to perform this command"
    cb 432 and 439
     
  18. Offline

    Techcuron

    I did all the things said above, And still it says I don't have permission. I do not have essentials or general.
    Or do I need GroupUsers for this to work? Sorry for my stupidity.
     
  19. Offline

    lego6245

    Do you use permissions?
     
  20. Offline

    Techcuron

    Yes I do use permissions.
     
  21. Offline

    lego6245

    Make sure the classes you want to be able to spawn has the spawnlisted.item permission.
     
  22. Offline

    Original_CD

    Well I installed everything right, and well, im a noob at coding COMPLETELY but when I play my server what do i type?
    Ive tryed /item stone 1 and /item 1 20 but nothing at all happens :/ maybe can you make a video because i have this problem with all your plugins
     
  23. Offline

    lego6245

    When you start up your server, you should make sure that you can see the initialization message that indicates that the plugin has started up. Once that happens, if you are using permissions, ensure you are in a class that has the spawnlist.item permission. If not, you should not need to. Then, type /item and read the usage description, and you should be well on your way to working.
     
  24. Offline

    PandaVidya

    I get this error when starting the server:

    Code:
    2011-02-26 02:17:03 [SEVERE] Could not load plugins/Spawnlist.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:80)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:129)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:94)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
    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)
    Caused by: java.lang.NoSuchMethodException: com.enigmasm.spawnlist.Spawnlist.<init>()
    at java.lang.Class.getConstructor0(Class.java:2723)
    at java.lang.Class.getConstructor(Class.java:1674)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:75)
    ... 8 more
     
  25. Offline

    Phaedrus

    what bukkit version are you using?
     
  26. Offline

    Chaseocity

    I get this same error on my server as well. I am on cb version 452


    Code:
    2011-02-26 02:17:03 [SEVERE] Could not load plugins/Spawnlist.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:80)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:129)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:94)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
    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)
    Caused by: java.lang.NoSuchMethodException: com.enigmasm.spawnlist.Spawnlist.<init>()
    at java.lang.Class.getConstructor0(Class.java:2723)
    at java.lang.Class.getConstructor(Class.java:1674)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:75)
    ... 8 more
     
  27. Offline

    lego6245

    Hmm... I'm trying to figure it out. It's a confusing puke.
     
  28. Offline

    Phaedrus

    I've been seeing this in the console lately. Bukkit 447

    Code:
    00:33:52 [SEVERE] nullot to update one last plugin
    org.bukkit.command.CommandException: Unhandled exception executing command 'item' in plugin Spawnlis
    t v0.6
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:21)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:77)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:177)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:638)
            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:351)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:266)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.IllegalArgumentException: Item could not be found.
            at com.enigmasm.spawnlist.Item.getItem(Item.java:475)
            at com.enigmasm.spawnlist.Spawnlist.itemCommand(Spawnlist.java:153)
            at com.enigmasm.spawnlist.Spawnlist.onCommand(Spawnlist.java:80)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:19)
            ... 12 more
    Caused by: java.lang.IllegalArgumentException: No enum const class com.enigmasm.spawnlist.Item.35^14
    
            at java.lang.Enum.valueOf(Unknown Source)
            at com.enigmasm.spawnlist.Item.valueOf(Item.java:1)
            at com.enigmasm.spawnlist.Item.getItem(Item.java:471)
            ... 15 more
    not sure what causes it, maybe a user is putting garbage in as an argument.
     
  29. Offline

    lego6245

    It's using the ^ character to designate damage. Do 35:14 and get back to me.
    --- merged: Feb 28, 2011 12:06 AM ---
    For those who can't seem to get it started, what other plugins are you using?
     
  30. Offline

    YAY987

    Sorry, I'm new and this is my first plugin install.

    What do i put the files in? I tried putting the .jar file and the folder named spawnlist with the config inside into the plugins folder but nothing worked in the game. I currently am not using any other plugins. also, to configure it, I don't want to disallow any items, so to i have to allow all item numbers?
     
  31. Offline

    lego6245

    You need to clarify a bit. You want to make a folder called plugins, then put the .jar file in there. Then, put the folder called Spawnlist in that same directory. Then, start the server up. If you don't want to disallow any items, then use disallowed and don't list any numbers. Or, give every class spawnlist.canspawnanything in their permissions.
     

Share This Page