[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

    Doles

    Yeah I am having trouble too, I want my users to be able to spawn just one item, but it seems it's all or nothing :/

    Thanks for this plugin btw!

    Maybe put the old versions up online too, because I know those worked at one point ;)
     
  3. Offline

    lego6245

    @Doles use allowed and just that one item. It should work.

    @jmcneely Let me see your permissions config and your spawnlist config.
     
  4. Offline

    jmcneely

    Alright here is my spawnlist config:
    Code:
    default-stack-size: 64
    show-warning: 0
    default:
     disallowed:
      - 8
      - 9
      - 10
      - 11
      - 51
    Admin:
     disallowed:
      - 8
      - 9
      - 10
      - 11
      - 51
    And here is the permission config but just for the group Admin cause thats the only group I want to disallow some items and the whole file is rather long:
    Code:
    Admin:
            default: false
            info:
                prefix: 'Min'
                suffix: 'Min'
                build: true
            inheritance:
            - Citizen
            permissions:
            - warpz0r.free.warp
            - warpz0r.list
            - warpz0r.warpto
            - warpz0r.home
            - warpz0r.sethome
            - warpz0r.worldwarp
            - warpz0r.worldhome
            - warpz0r.compasshome
            - warpz0r.compasswarp
            - warpz0r.compassreset
            - bedrockcontrol.placeblock
            - bedrockcontrol.destroyblock
            - wormhole.use.sign
            - wormhole.use.dialer
            - wormhole.use.compass
            - wormhole.list
            - iConomy.payment
            - iConomy.access
            - iConomy.rank
            - iConomy.list
            - iConomy.admin.stats
            - iConomy.admin.account.create
            - simpleshop.buy
            - simpleshop.buy.gift
            - simpleshop.sell
            - godPowers.heal
            - wolfpound.use
            - spawnlist.item
            - spawnlist.give
            - spawnlist.spawnlisted
            - minecraft.help
            - minecraft.kick
            - minecraft.tp
            - minecraft.tell
            - minecraft.list
            - minecraft.me
            - minecraft.time.set
            - minecraft.time.add
            - minecraft.whitelist.add
            - minecraft.whitelist.remove
            - minecraft.whitelist.list
            - bukkit.version
    Code:
    users:
        jmcneely:
            group: Admin
     
  5. Offline

    lego6245

    Oh my god guys.

    I figured it out.

    V0.9.2 released - "I MADE A STUPID 2X EDITION"
    Added an '=' sign.

    NOTE: TO MAKE THINGS WORK, EVERYTHING IN YOUR CONFIG.YML FILE MUST BE LOWERCASE KTHXBYE

    Added a reminder that donators get access to everything I do minecraft related. This means that you'll get access to a secret plugin that I'm making right now before anyone else, on top of my future projects once 1.6 and the Mod API come out, which will be creating TechBlocks, a plugin idea from my friend which involves LAZOR BEEMZ and porting all of my mods into client side, no bukkit required.

    If that wasn't enough, I'll also give you insider access to my game development side of things. So, not only do you get your minecraft fill, you also get your indie development fill. Long story short, please donate <3

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

    lego6245

    I'm kinda sad that it's only when people have problems that they post on my thread. Give some loving? I like feedback/suggestion ideas!
     
  7. Offline

    Matt Phillips

    having some issues restricting items, just a personal server for me and my buddies so everyone has * permissions.
    would i have to restrict the /give command or is that somehow over-ridden by the addon?

    thanks

    EDIT:i suppose i should specify

    default-stack-size: 1
    show-warning: 0
    default:
    allowed:
    - 1
    - 2
    - 3
    - 4


    so should 1-4 be only what i am allowed to create? because i can create any item.
    or is 1-4 just numbering the items i am allowing, so if i wanted to allow stone would i put

    default-stack-size: 1
    show-warning: 0
    default:
    allowed:
    - 1 01
    - 2
    - 3
    - 4

    or no?
     
  8. Offline

    lego6245

    @MattPhillips Well, the * permission will give everybody everything. Including my version of the /give command, along with canspawnanything, which means they'll automatically... well, spawn anything.
     
  9. Offline

    Matt Phillips

    so using the easy fix of * is something im finally gonna have to stop? and probably go through and actually assign permissions to the groups? or is there a way to make this work while still letting everyone have *?

    really want your addon to work, seems really cool =D and will definitely utilize it one way or another!
     
  10. Offline

    lego6245

    At this time, my plugin operates under the (in my opinion, not unreasonable) assumption that if you have every single permission in the book, you should be able to do everything. So, therefore, there is no easy fix. You'll have to manually assign permissions that way, making sure that

    1. The people in question are not OPs (because OPs have access to normal /give anyway)
    2. They do not have the permission spawnlist.canspawnanything (Because then they can spawn whatever they want)
     
  11. Offline

    Matt Phillips

    well i suppose that makes sense. guess i just didn't realize how much more i needed to change before limiting items. thanks for the help/quick replys =)
     
  12. Offline

    lego6245

    No problem mate. Have fun using the plugin.
     
  13. Offline

    karsten1994

    Sweet got everything working now but there need to be a tururial cuzz setting it up was not that easy :(
     
  14. Offline

    DerET

    Normal players aren't able to get items, even if they have the permission for. There are no console errors at version 0.9.2 and Craftbukkit Build 740, so what is wrong?
     
  15. Offline

    MrCrafterUk

    Hmmm.... i always seem you get:- 'You can't spawn that item.' when i try spawn any items. I am the host of the server and i have no other mods installed so it should be affected by anything! please help thank you:)!
     
  16. Offline

    jmcneely

    I absolutely love this plugin of yours. Despite the troubles we have had, I had set this plugin in my favorite plugins and I highly recommend it. Why? Because this plugin is an improved version of the original /give command. It shortens the command with just /item <item id> and BAM, you got a full stack of that item (Only if the default is set to 64 in the config). Not only that but it even goes further then what /give can do, you can add on the extended dmg value for spawning colored wool and other items that require a dmg value. It doesn't stop there either, you can prevent certain groups from spawning certain blocks/items(which I got working with the new update, V0.9.2). That saves me some plugin room for my server.
     
  17. Offline

    Psycho Robot

    I'm quite a fan of this plugin, though is there any way you could add multi-world support? I'd like the list to be different on one world. Perhaps take a page from multiinv's book and make it a config file like this:

    Code:
    default-stack-size: 1
    show-warning: 1
    world1,world2,world3:
      default:
        disallowed:
          - 42
      moderator:
        disallowed:
          - 94
      admin:
        disallowed:
          - 23
    world4,world5:
      default:
        disallowed:
          - 81
      moderator:
        disallowed:
          - 77
      admin:
        disallowed:
          - 58
    
    In the sample I put up there, since worlds 1 2 and 3 are all on one line, separated by commas, they all use the following settings. Likewise, since worlds 4 and 5 are on a different line than 1-3, they use separate settings.
     
  18. Offline

    Abadon84

    could you eventually make the source open so that people could have a look in it or to fix some things?
    greetings abadon
     
  19. Offline

    lego6245

    @Psycho_Robot Sure, that might be a feature for V0.10

    Also coming for V0.10, is an improved error catching system that won't scare your users when they misspell something.
     
  20. Offline

    makos

    Hi. I just installed your plugin on my server, and I have a problem. I'm using the latest Bukkit version, along with the latest plugin. I set up permissions etc. and admins on my server can spawn and use everything well (except /slreload even despite that admins have * perms), but normal players, which I gave 'spawnlist.item' and 'spawnlist.spawnlisted' nodes to, can spawn everything, even items I blacklisted. This is my config file:
    Code:
    default-stack-size: 1
    show-warning: 1
    default:
      disallowed:
        - 46
        - 49
        - 10
        - 11
        - 08
        - 09
        - 07
        - 51
        - 52
        - 95
    Oh, and this is part of the permissions config file:
    Code:
        Miner:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'minecraft.list'
                - 'bukkit.plugins'
                - 'bukkit.version'
                - 'spawnlist.item'
                - 'spawnlist.spawnlisted'
        Admin:
            default: false
            info:
                prefix: '&c'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    Miner group is the default, standard player group.
     
  21. Offline

    lego6245

    @makos Add this to the spawnlist config:
    Code:
    miner:
      disallowed:
        - 46
        - 49
        - 10
        - 11
        - 08
        - 09
        - 07
        - 51
        - 52
        - 95
    And you should be all set.
     
  22. Offline

    sinkir

    my config
    Code:
    default-stack-size: 64
    show-warning: 1
    default:
     disallowed:
      - 46
    

    if i type :
    /item mynick 46
    Code:
    03:29:14 [INFO] That doesn't seem to be a valid item type.
    
    if i type :
    /give mynick 46
    i have the item 46.

    if i type :
    /item 46
    i have the item 46.


    now bad thing :

    if i type :
    /item mynick 46:0
    Code:
    
    03:29:38 [GRAVE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'item' in plugin Spawnlist v0.9.2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:278)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:682)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:645)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:639)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:373)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:288)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NumberFormatException: For input string: "46:0"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:458)
        at java.lang.Integer.parseInt(Integer.java:499)
        at com.enigmasm.spawnlist.Spawnlist.itemCommand(Spawnlist.java:225)
        at com.enigmasm.spawnlist.Spawnlist.onCommand(Spawnlist.java:70)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    03:29:56 [GRAVE] null
    org.bukkit.command.CommandException: Unhandled exception executing command '!' in plugin LastCommand v1.22
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:278)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:682)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:645)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:639)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:373)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:288)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: org.bukkit.command.CommandException: Unhandled exception executing command 'item' in plugin Spawnlist v0.9.2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:278)
        at net.weasel.LastCommand.LastCommand.onCommand(LastCommand.java:64)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    Caused by: java.lang.NumberFormatException: For input string: "46:0"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:458)
        at java.lang.Integer.parseInt(Integer.java:499)
        at com.enigmasm.spawnlist.Spawnlist.itemCommand(Spawnlist.java:225)
        at com.enigmasm.spawnlist.Spawnlist.onCommand(Spawnlist.java:70)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 16 more
    
    

    i type 46:0 cause TooManyItems use this commande.
     
  23. Offline

    Psycho Robot

    Could you add a clear inventory command which doesn't affect worn items? Since this is an item spawning plugin, I figure its logical to include, and I'd like to have that functionality without getting a plugin just for that
     
  24. Offline

    lego6245

    @Psycho_Robot I know there are plugins that do this besides mine, and I don't want to feature creep on people.

    @sinkir Well, I (obviously) can't accommodate TooManyItems in the base jar by default, but perhaps the v0.10 release might make you happy.
     
  25. Offline

    sinkir

    @Psycho Robot
    look at EmptyInventory

    @lego6245

    if you fix
    /give <name> id

    and

    /item id

    you just need to add the ":" for bloks like wool ^^ .


    thx for you plugin :D

    Why i need your plugin (open)

    I use ItemCraft.
    you can see at this page i need a lot of items
    So i use TooManyItems whis this config :
    Code:
    give-command:/give {0} {1}:{3} {2}
    {0} player's username
    {1} item ID
    {2} quantity
    {3} damage.

    there is a bad thing this ...
    i have a item (4029) if this item go in the ground or the water the server crash. :'(

    So i whant disallowed the item 4029.
     
  26. Offline

    nbp47

    Hello. I have made an account to just ask you this question. I'm making a freebuild/creative server for anyone to come play and build things but I would like to disallowed the spawning of certain blocks. The problem that I am having is that after all this is setup... when I try to spawn items on a default account (which these permissions are set to) says "You don't have access to that command" This is my current steup.

    default-stack-size: 64
    show-warning: 1
    default:
    disallowed:
    - 7
    - 11
    - 10
    - 51
    - 46
    - 49
    - 327

    and this is my permissions. (a small bit of it)

    build: true
    inheritance:
    permissions:
    - 'essentials.help'
    - 'essentials.home'
    - 'essentials.motd'
    - 'essentials.rules'
    - 'essentials.sethome'
    - 'spawnlist.item'
    - 'spawnlist.spawnlisted'
    - 'essentials.clearinventory'
    - 'essentials.spawn'

    Help please!
     
  27. Offline

    lego6245

    @nbp47 I don't think your permissions folder is set up properly for groups.

    @sinkir Damage values are already supported, in the same format.
    Also, you don't need to /i username item amount
    Just /i item amount
    or /give username item amount
     
  28. Offline

    nbp47

    @lego6245 What do you mean? My permissions folder looks pretty fine... should i change someting in the group manager/users groupmanager/groups folder?
     
  29. Offline

    lego6245

    @nbp47 Set up a group called Default and add those permissions into that group.
     
  30. Offline

    nbp47

    @lego6245 the same message comes up. "You do not have access to that command". I made a new default group and added my character in that group. when i type it says default so i know that is working. I put the give, item, and spawnlisted in the permissions. I guess i'll try to use the same ones with essentials..?

    NEVER MIND i got it! thank you!

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

    Magiq

    ok so my problem is... what do i type ingame on my server to allow or disallow certain items? and please be as specific as you can. Thanks in advance :)
     

Share This Page