[GEN] GiveIt V1.3 A "give" item plugin with more control [1240]

Discussion in 'Inactive/Unsupported Plugins' started by cian1500ww, Feb 5, 2011.

  1. Offline

    cian1500ww

    GiveIt - A "give" item plugin with more control [1240]
    Version: 1.3

    The idea behind this plugin is to allow players to use a special command called "/giveme" which can be controlled.

    By controlled, I mean that the server admin can only allow certain items with a max amount to be given. That way, you won't have players building giant gold structures unless you'd like them to ;)

    You can also restrict an item to a single player for those extra special projects.

    Players are able to see what items are available ingame.

    Players that are added to the mods.txt file, will have the ability to add and remove items from the allowed.txt file ingame.

    They will also have the ability to give other players items.

    The usernames of players that are listed in the blocked.txt file will not be able to use the /giveme command.

    I've been using GiveIt for a while on my server to see how well it worked and so far it's been working quite well so I've decided to release it and share the source code.

    This is my first plugin for CraftBukkit so do go easy on me :p

    Features:
    • Only allow specified items to be "given"
    • Restrict the amount that can be "given"
    • Restrict the giving of certain items to a single player
    • Full logging of every item requested by every player
    • Players can see what items are allowed ingame
    • Mods can add or remove items from the allowed list ingame
    • Certain players can be blocked from using the /giveme command
    • ItemId's don't need to be in the 3 digit format ie. 75 will work instead of 075
    • Support for Permissions plugin v2.5 (Permissions plugin is optional)
    [​IMG]


    [​IMG]

    [​IMG]

    Download:

    Download GiveIt v1.3 Plugin
    Source Code
    Hudson

    Installation Instructions:
    1. Download GiveIt using the link above and place it in your plugins folder
    2. Enable GiveIt by starting your server
    3. GiveIt will automatically create a directory called GiveIt in your plugins folder
    4. In the GiveIt folder there should be a file called allowed.txt
    5. Add a new item to the allowed.txt file by following this:
      1. ItemID=MaxAmount.username
      2. eg. 278=01.cian1500ww
      3. This command allows cian1500ww to give themselves one diamond pickaxe
      4. eg. 278=01
      5. This command allows any player to give themselves one diamond pickaxe
    6. Make sure that you only add one item per line.
    7. The plugin does NOT need to be reloaded after adding items to the allowed.txt file.
    8. Add the usernames of the players to mods.txt that you'd like to have access to the /givemeadd and /givemeremove commands. (Only if you are not using Permissions)
    9. Add the usernames of the players to blocked.txt that you would like to stop from using /giveme. (Only if you are not using Permissions)
    10. Reload the plugin after adding usernames to mods.txt or blocked.txt
    11. A log file called GiveIt.log will be created in the GiveIt folder after the plugins first use.
    Sample allowed.txt file:

    Code:
    #ItemID=Amount.username
    278=01
    052=01
    078=64
    079=64
    066=30
    074=32
    011=10.cian1500ww
    
    Usage Instructions:

    A player can give themselves an item by using the following command:


    Code:
    /giveme <itemid> <amount> <durability>
    Example:
    Code:
    /giveme 052 1
    Note: In version 1.3+, it's possible to /giveme and /giveto items with durability

    An important point to remember is that the item id must always be 3 digits so item 40 will be 040.No longer an issue in V1.2 :)

    If the player requests an item that isn't allowed, they will be notified. Also, if they request too many of one item, they will be asked to choose a lower amount.

    Players can see what items are available by using the following command:
    Code:
    /givemeinfo
    Players that are specified in the mods.txt file, can add items to the allowed.txt file with the following command:
    Code:
    /givemeadd <itemid> <quantiy> <username if required>
    Example:
    Code:
    /givemeadd 278 30 cian1500ww
    Example without username:
    Code:
    /givemeadd 278 30
    They can also remove items from the file using this command:
    Code:
    /givemeremove <itemid>
    Example:
    Code:
    /givemeremove 50
    The /giveto command allows players listed in the mods.txt file to give items in allowed.txt to other players. The command is as follows:
    Code:
    /giveto <playername> <item> <amount> <durability>
    Example:
    Code:
    /giveto cian1500ww 35 10 2
    Permissions Plugin Instructions:


    Add the following permission to the groups or users that you'd like to have access to the "/giveme" command:
    Code:
    giveit.allow

    All users will still have access to the "/givemeinfo" command.

    Add the following permission to the groups or users that you'd like to have access to the "/givemeadd" and "/givemeremove" command:
    Code:
    giveit.modify
    To give users access to the "/giveto" command:
    Code:
    giveit.to
    If you are using Permissions, the mods.txt and blocked.txt files will not be used but will still be generated.
    Changelog:

    Version 1.3:
    • Added support for CraftBukkit build 617
    • Added the /giveto command
    • Added support for durability so players can now set the durability of the item they are spawning
    • Fixed problems where players could give themselves more than the allowed amount
    • Fixed the example command being shown everytime /giveme was used
    • Tested with Permissions v2.5.5
    Version 1.2:
    • Added support for Permissions v2.5
    • Removed TSLPC
    • Added support for builds 254+
    • Ability to add items and remove items from the allowed.txt file ingame.
    • Added a blocked.txt file that will contain a list of usernames that aren't allowed to use the plugin
    • Allowed for the use of item ids that don't begin with 0 ie. 74 instead of 074
    • Allowed for the spawning of item quantities greater than 64
    Version 1.1:
    • Added support for Permissions plugin
    • Improved incorrect command checking
    • Split the code into separate classes and tidied it up a bit
    Version 1.0:

    • Initial Release
    Let me know of any problems here or feel free to drop me an email -> [email protected]


    If you have any ideas or feature requests, please do tell me and I'll do my best to implement them!!
     
  2. Offline

    cian1500ww

    Yep, should work fine, let me know if you have any problems.
     
  3. Offline

    Nate204

    I get this while trying to use it. I'm on the most recent recommended build.

     
  4. Offline

    cian1500ww

    Are you using the permissions plugin??
     
  5. Offline

    xGhOsTkiLLeRx

    Hey,

    I got a strange problem!
    Here is my allowed.txt:

    Code:
    #ItemID=Amount.username
    276=01
    277=01
    278=01
    279=01
    298=01
    299=01
    300=01
    301=01
    261=01
    262=64
    322=01
    355=01
    I'm an admin on my server, and was testing your plugin.
    I'm in the permissions config an admin.

    So, now I use, for example, /giveme 355 2
    Just for trying. And I get 2 beds, instead of just 1 I defined!
    Can you tell me, what's wrong with my config?!

    I'm on bukkit #531
    Here is my server log:

    Code:
    2011-03-14 15:32:40 [INFO] Starting minecraft server version Beta 1.3
    2011-03-14 15:32:40 [INFO] Loading properties
    2011-03-14 15:32:40 [INFO] Starting Minecraft server on 5.71.58.190:25565
    2011-03-14 15:32:40 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-516-gdf87bb3-b531jnks (MC: 1.3)
    2011-03-14 15:32:40 [INFO] Preparing level "Welt mit ALLEN"
    2011-03-14 15:32:40 [INFO] Preparing start region
    2011-03-14 15:32:41 [INFO] [Permissions] version [2.5.4] (Phoenix) was Initialized.
    2011-03-14 15:32:41 [INFO] AppleTree activated.
    2011-03-14 15:32:41 [INFO] [Bandages] Found Permissions Plugin!
    2011-03-14 15:32:41 [INFO] [Bandages] Enabled! Version:1.1.2 by bekvon
    2011-03-14 15:32:41 [INFO] ChatBukkit v0.0.1 is enabled!
    2011-03-14 15:32:41 [INFO] [ChatStamp]    ChatStamp V1.03 started
    2011-03-14 15:32:41 [INFO] [ColorMe] v1.2 has been enabled.
    2011-03-14 15:32:41 [INFO] CraftBukkitUpToDate version 2.1.1 is enabled!
    2011-03-14 15:32:41 [INFO] [Permissions] version [2.5.4] (Phoenix)  loaded
    2011-03-14 15:32:41 [INFO] CButD: CraftBukkit is up to Date
    2011-03-14 15:32:41 [INFO] [DeathTpPlus] 5 Kill Streaks loaded.
    2011-03-14 15:32:41 [INFO] [DeathTpPlus] 5 Death Streaks loaded.
    2011-03-14 15:32:42 [INFO] [DeathTpPlus] Using Permissions
    2011-03-14 15:32:42 [INFO] [DeathTpPlus] version 1.8 by lonelydime is enabled!
    2011-03-14 15:32:42 [INFO] [DiscoSheep] version 0.3 is enabled!
    2011-03-14 15:32:42 [INFO] [DiscoSheep] Permissions plugin detected!
    2011-03-14 15:32:42 [INFO] EggPlugin version 1.1 is enabled with permissions!
    2011-03-14 15:32:42 [INFO] Fabulous version 0.1 is enabled!
    2011-03-14 15:32:42 [INFO] FakeMessage version 0.3 is enabled!
    2011-03-14 15:32:42 [INFO] [FishPeople] version 1.1 is enabled!
    2011-03-14 15:32:42 [INFO] GiveIt: Permissions support enabled
    2011-03-14 15:32:42 [INFO] GiveIt version 1.2 by cian1500ww is enabled!
    2011-03-14 15:32:42 [INFO] Growbie version 2.1 enabled.
    2011-03-14 15:32:42 [INFO] Lampstone version 0.4 is enabled.
    2011-03-14 15:32:42 [INFO] LastSeen: Enabled
    2011-03-14 15:32:42 [INFO] LoginMessage 0.5_4 enabled
    2011-03-14 15:32:42 [INFO] MobRider enabled
    2011-03-14 15:32:42 [INFO] MobRider - Permissions Plugin Detected
    2011-03-14 15:32:42 [INFO] NetherGate version 0.54 is enabled
    2011-03-14 15:32:42 [INFO] Persistence version 0.61 is enabled
    2011-03-14 15:32:42 [INFO] PorteCoulissante plugin version 1.0.3 by Captain_Chaos enabled
    2011-03-14 15:32:42 [INFO] ScrapBukkit version 0.2.1 is enabled!
    2011-03-14 15:32:42 [INFO] [SendGift] version 1.1 by lonelydime is enabled!
    2011-03-14 15:32:42 [INFO] [SkyPirates]: Permissions enabled.
    2011-03-14 15:32:42 [INFO] [SkyPirates]: version [1.2] (Caribbean) loaded
    2011-03-14 15:32:42 [INFO] SuperBow version 0.96 is enabled!
    2011-03-14 15:32:42 [INFO] Unknown Command version 1.1 is enabled!
    2011-03-14 15:32:42 [INFO] Done (0,181s)! For help, type "help" or "?"
    2011-03-14 15:32:46 [INFO] 143 recipes
    2011-03-14 15:32:46 [INFO] xGhOsTkiLLeRx [/5.71.58.190:51117] logged in with entity id 133
    2011-03-14 15:32:46 [INFO] Loaded world: Welt mit ALLEN
    2011-03-14 15:32:46 [INFO] Persistence: Create a plugins/Persistence/permissions.yml to use internal permissions
    2011-03-14 15:32:51 [INFO] CButD: Plugin-Update-Check started
    2011-03-14 15:32:53 [INFO] No source for chatbukkit.jar ask the Author to give me one
    2011-03-14 15:32:56 [INFO] No source for Fabulous1.1.jar ask the Author to give me one
    2011-03-14 15:32:56 [INFO] No source for FakeMessage-0.3.jar ask the Author to give me one
    2011-03-14 15:32:58 [INFO] No source for Lampstone.jar ask the Author to give me one
    2011-03-14 15:33:01 [INFO] No source for porte-coulissante-1.0.3.jar ask the Author to give me one
    2011-03-14 15:33:01 [INFO] No source for scrapbukkit.jar ask the Author to give me one
    2011-03-14 15:33:01 [INFO] No source for SkyPirates.jar ask the Author to give me one
    2011-03-14 15:33:06 [INFO] CButD: Plugin-Update-Check finished
    2011-03-14 15:33:15 [INFO] xGhOsTkiLLeRx lost connection: disconnect.quitting
    2011-03-14 15:33:17 [INFO] CONSOLE: Stopping the server..
    2011-03-14 15:33:17 [INFO] Stopping server
    2011-03-14 15:33:17 [INFO] AppleTree disabled.
    2011-03-14 15:33:17 [INFO] [Bandages] Disabled!
    2011-03-14 15:33:17 [INFO] [ChatStamp]    Ending ChatStamp
    2011-03-14 15:33:17 [INFO] [ColorMe] v1.2 has been disabled.
    2011-03-14 15:33:17 [INFO] [DeathTpPlus] Disabled
    2011-03-14 15:33:17 [INFO] [DiscoSheep] closed down. Good bye
    2011-03-14 15:33:17 [INFO] EggPlugin version 1.1 is disabled!
    2011-03-14 15:33:17 [INFO] FakeMessage Disabled
    2011-03-14 15:33:17 [INFO] [FishPeople] version 1.1 is disabled!
    2011-03-14 15:33:17 [INFO] Disabling GiveIt!
    2011-03-14 15:33:17 [INFO] Growbie disabled.
    2011-03-14 15:33:17 [INFO] LastSeen: Disabled
    2011-03-14 15:33:17 [INFO] [Permissions] version [2.5.4] (Phoenix) disabled successfully.
    2011-03-14 15:33:18 [INFO] [SendGift] Disabled
    2011-03-14 15:33:18 [INFO] [SkyPirates]: version [1.2] (Caribbean) disabled
    2011-03-14 15:33:18 [INFO] [SpawnMob] Version 1.8 disabled.
    2011-03-14 15:33:18 [INFO] SuperBow version 0.96 is disabled!
    2011-03-14 15:33:18 [INFO] Unknown Command says Goodbye!
    2011-03-14 15:33:18 [INFO] Saving chunks
    Hope to get some help!
    And finally a suggestion:

    You can only use /giveme, when you respawned (maybe for 1 or 2 minutes)
    So you can get some "basic" things after respawning.
    Maybe a command to give all the items in allowed.txt with on command, like /giveme all

    Greetings,

    xGhOsTkiLLeRx
     
  6. Hi can someone set up a full config file with all items :)
    my server is running just for my surrounding houseing and were just building!!!
    we would like to be able to spawn every item ... and it is a pain to add every item to the list so
    if any one has one can you drop it ..... please... much apriciated....btw Great pluggin.... the origional give built in is wak.... since my name is hang_wit_du_gang....it takes forever to type (/give hang_wit_du_gang 64 40)
    so awsome ... plz load a full list
     
  7. Offline

    Phase

    It would've only taken you 10 minutes or so of typing to get the full list, but anyway here's the file I use. It doesn't include the full list, but it shouldn't take much longer to add in the stuff that's missing.

    Code:
    #ItemID=Amount
    001=192
    002=192
    003=192
    004=192
    005=192
    006=192
    008=192
    009=192
    010=192
    011=192
    012=192
    013=192
    014=192
    015=192
    016=192
    017=192
    018=192
    019=192
    020=192
    021=192
    022=192
    023=192
    024=192
    025=192
    035=192
    037=192
    038=192
    039=192
    040=192
    041=192
    042=192
    043=192
    044=192
    045=192
    047=192
    048=192
    049=192
    050=192
    051=192
    053=192
    054=192
    055=192
    056=192
    057=192
    058=192
    059=192
    060=192
    061=192
    063=192
    064=192
    065=192
    066=192
    067=192
    068=192
    069=192
    070=192
    071=192
    072=192
    073=192
    076=192
    077=192
    078=192
    079=192
    080=192
    081=192
    082=192
    083=192
    085=192
    086=192
    087=192
    088=192
    089=192
    091=192
    092=192
    256=1
    257=1
    258=1
    259=1
    260=192
    261=1
    262=192
    267=1
    272=1
    273=1
    274=1
    275=1
    276=1
    277=1
    278=1
    279=1
    280=192
    283=1
    284=1
    285=1
    286=1
    287=15
    291=1
    292=1
    293=1
    294=1
    295=64
    310=1
    311=1
    312=1
    313=1
    320=192
    321=192
    322=192
    323=192
    324=192
    325=192
    326=192
    327=192
    328=192
    329=1
    330=192
    331=192
    332=192
    333=192
    335=192
    338=192
    342=192
    343=192
    345=1
    346=1
    347=1
    351=192
    354=192
    @cian1500ww Will you support modifing the damage property of a spawned item like this? /giveme id-dmgvalue

    This will be useful for spawning colored wool, different logs, etc.

    Thanks!

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

    sethgandy

    Is there any way to control the item command?
    Because I'm using SpawnList plugin and got that rocking perfect, now I just want to be able to limit certain items (picks and the likes), is the /giveme the only method controlled?
     
  9. Offline

    davcenmt2

    I'm not sure if this has happened to anyone else, after the support of more than 64 items at once, the max item limit has been broken, so i can essentially give my self any amount of any item on the allowed list.....does anyone know a fix for this??
     
  10. Offline

    Jayzee64

    Let me start off by saying Thank you for the plugin. I was wondering on your next release that when you do give your self an item that it not to output "/giveme [item] [amount]" "Example: /giveme 278 1". Just seems a bit redundant after each /giveme that you do. But other than that it's a great plugin, it's a great help with my building :).
     
  11. Offline

    cian1500ww

    Apologies for the delay in replying guys, I haven't been getting update emails lately for some reason :eek:
    Sure, I haven't dealt with the damage value before so I'll have to see how I can implement it without affecting the rest of the plugin.
    I couldn't find anything when I originally decided to create the plugin so I'm not sure tbh.
    So after you updated to 1.2, you could give yourself any amount??
    I'll sort that in the next update :)
     
  12. Offline

    Fugensnot

    Hey there :D Don't know if this has been mentioned, but how do we go about getting items with additional information required? Like different colors of wool/dyes?
     
  13. Offline

    Imitation

    When you use a huge number you get this error:

    Code:
    org.bukkit.command.CommandException: Unhandled exception executing command 'giveme' in plugin GiveIt v1.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:229)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NumberFormatException: For input string: "9909999999999999999999"
            at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
            at java.lang.Integer.parseInt(Integer.java:484)
            at java.lang.Integer.parseInt(Integer.java:514)
            at com.bukkit.cian1500ww.giveit.Giveme.giveme(Giveme.java:70)
            at com.bukkit.cian1500ww.giveit.GiveIt.onCommand(GiveIt.java:171)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    Not a big deal obviously.. nothing crashed yet just cosmetic in that the server console could get spammed up a bit.

    Do you think you can make it used the items.db so we can refer by name?

    I am also experiencing no limit in /giveme as well. My limits are all set to 64 and I can take 65 just fine.

    I also have what I think it a great idea - /giveto
    I know you're saying 'But we already have give'.. but I don't think there's a /give plugin that will limit giving to other users with this kind of control is there?

    I could give giveit.to to my mods and allow them to give small amounts of selected items.
     
  14. Offline

    Phase

    @cian1500ww I had a look at how Essentials does it with their /i and /give commands, and I found this in the sourcecode:

    stack.setDurability(Short.parseShort(itemArgs[1]));

    http://java.net/projects/essentials...essentials/commands/Commandgive.java?rev=1000

    I'm not sure if stack.setDurability is a bukkit method, or something internal to Essentials, but I did look through both the bukkit javadocs ( http://javadoc.lukegb.com/BukkitJD/ ) and the other sourcecode files in Essentials with no luck.

    Hope you have better luck implementing it then I did finding it out to help you :)

    I actually just suggested this, he said he would look into it. Here's hoping he does! :)

    Maybe now that he sees more than one person would like this.. it'll add more incentive :p
     
    Fugensnot likes this.
  15. Offline

    Pazzy34

    love it thanks =]
     
  16. Offline

    cian1500ww

    Durability has been coded up and seems to be working :)

    I've got some further testing to do to see if I can reproduce some of the problems other people have been having and I need to code up the /giveto command.

    Should be done in a few days :D
     
  17. Hey I really appreciate this one. Combined with plgdisablecmd and I can run things just the way I want them to be. Without going through the BS of permissions.
     
  18. Offline

    Imitation

    Love your work cian!

    Just realised that we could use Multiworld support.. any chance? :) :D

    Also is there any way in which I could buy your some beer?
     
  19. Offline

    cian1500ww

    Great to hear!! :)
    Thanks!!
    I'll take a look at multiworld and see what I can do, haven't looked at any of the multiworld coding yet.

    Beer would be nice but it probably won't help the coding :p
     
  20. Do not feed Stewie Griffin Beer. Give him a juicebox.
     
  21. Offline

    cian1500ww

    Ah crap... :p
     
  22. Offline

    Aquanoise

    hi!

    i've got a problem in game. When i type /giveme 278 64 it says: giveit: you do not have permission to use giveit.

    do you know how to fix this?

    one thing.. im new to permissions, maybe my permission file is not right :

    Code:
    # System is no longer used, but may become used in the future
    # Copies is for multiple-world support
    #   Put the name of the world you wish for it to be a clone of, otherwise leave it empty.
    #   Does not work for the default world.
    plugin:
        permissions:
              - 'giveit.allow'
            system: default
            copies:
    
    ##
    # Groups can contain inheritance.
    #   To make a group inherit the permissions from another
    #   group simply place the groups name in the "inheritance:" like so:
    #
    #   Example:
    #       inheritance:
    #           - Default
    ##
    #   All permissions including the asterisks must be placed in single quotes.
    #   like so:
    #
    #       - 'general.spawn'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'general.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    ##
    #   To exempt a node use the - prefix like so:
    #       - '-general.time'
    ##
    groups:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: false
            inheritance:
            permissions:
                - 'general.spawn'
                - 'iConomy.payment'
                - 'iConomy.list'
                - 'iConomy.rank'
        Moderator:
            default: false
            info:
                prefix:
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
        Admin:
            default: true
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
                - '*'
    
    ##
    # DarkGrave has control over all commands.
    ##
    users:
        Aquanoise:
            group: Admin
            permissions:
    can anyone help me plz ;)?
     
  23. Offline

    cian1500ww

    Ok, I have coded up and tested the new giveto feature and the possibility of spawning items with a durability value eg. wool.
    I've also fixed the problems that people were having earlier where it was possible in some cases to spawn an amount greater than the allowed.

    I haven't tested permissions support yet but I hope to do that tomorrow so all going well, the new version should be out in the next 2-3 days.

    @Aquanoise I'll take a look at that tomorrow for you.
     
  24. Offline

    Aquanoise

    can't wait till the version for minecraft .4
     
  25. Offline

    Imitation

    Does / will that allow different items / amounts per world? ;) :)
     
  26. Offline

    cian1500ww

    Updated the original post with the details for Version 1.3 which is now available :)

    That'll be in the next version.
     
  27. Offline

    Milkshakes00

    I've got the SAME issue now. :( Was working fine the other day.. My permissions:

    Show Spoiler
    Code:
    plugin:
        permissions:
            system: default
            copies:
    
    groups:
        Administrator:
            default: false
            info:
                prefix: '&4Administrator: '
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    			- 'giveit.allow'
    			- 'giveit.to'
    
        Moderator:
            default: false
            info:
                prefix: '&6Moderator: '
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
    
    
        User:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
    		- '*'
    
    #Allows use of the back command:
                   - 'essentials.back'
    
    #Allows use of the back command on death:
                   - 'essentials.back.ondeath'
    
    #Allows users to teleport using the /tp command
                   - 'essentials.tp'
    
    #Allows users to teleport to their home:
                   - 'essentials.home'
    
    #Allows users to set their home.
                   - 'essentials.sethome'
    
    #Allows user to message others
                   - 'essentials.msg'
    
    #Shows the rules on /rules:
                   - 'essentials.rules'
    
    #Shows the message of the day:
                   - 'essentials.motd'
    
    #Allows the /me command
                   - 'essentials.me'
    
    #Shows who is online
                   - 'essentials.list'
    
    #Allows for the Give command:
                   - 'essentials.give'
    
    #Allows for the item command:
                   - 'essentials.item'
    
    #Allows players to kill themselves:
                   - 'essentials.suicide'
    
    #Allows players to go back to the spawn:
                   - 'essentials.spawn'
    
    #Allows teleportation between worlds:
                   - '- multiverse.tp'
    
    
    
        Guest:
            default: true
            info:
                prefix: 'Guest: '
                suffix: ' &6(I need to sign up at Free-Minecraft-Server.com)'
                build: false
            inheritance:
            permissions:
    		- '*'
    
    #Allows players to go back to the spawn:
                   - 'essentials.spawn'
    
    #Shows the rules on /rules:
                   - 'essentials.rules'
    
    
    #######################################################################################
    users:
    
        AmbitiousAmanda:
            group: Administrator
            permissions:
    
        Antiriv:
    	group: Administrator
    	permissions:
    
        secretlyhomeless:
    	group: Administrator
    	permissions:
        Milkshakes00:
            group: Administrator
            permissions:


    I'm assuming it's something wrong with my permissions, considering a lot of my plugins suddenly seem broken. :(
     
  28. Offline

    Fugensnot

    What's the format for requesting for an item with a different damage level?

    Also a suggestion: A /givemore command that repeats the last /giveme XD
     
  29. Offline

    Milkshakes00

    It says right in the first post..
    /giveme <itemid> <#of> <damage>
    So, for birch:
    /giveme wood 1 2
     
    Fugensnot likes this.
  30. Offline

    Fugensnot

    Hah! I'm blind XD Thank you :3
     
  31. Offline

    Randy Schouten

    In the /givemeinfo it says I can spawn 3 things.
    I used groups, so it seems they work.
    Code:
    001=01.g:admin
    002=01.Akumasama
    003=01.admin
    
    With g:admin I mean the group admin, if that works.

    But the thing is that it shows the admin player item in my list.
    When I type #2, it gives me an error that an internal error occured...
     

Share This Page