Filled RPBags

Discussion in 'Plugin Requests' started by Y1ght, Nov 23, 2020.

  1. Online

    Y1ght

    Plugin category: Roleplay

    Minecraft version: 1.13.2

    Suggested name: RoleplayBags

    What I want: I want a simple backpack / bag plugin!

    Right clicking the bag will make the bag open with a "Chest" only one chest. This means 27 inventory slots to store stuff. I've seen this done before, replace the little name on the top left of the little menu thing that pops up with "Bag".

    Make a command so when you type '/bag add name' it'll add the current bag into a list of usable bags. After so, make it where you can type '/bag list' to show all the bags that you can spawn in. One last command, make '/ban give username nameofbag' for players to spawn in the bags. Make it where if you right click the bag in GMC, it'll dupe it.

    Also make sure that the bags constantly save, so if the server-crashes that the data won't be loss. Also, can you make it where players can not stack them? If not, make the command support damage values for items so I can avoid stacking of them.

    Make the bag open with right click.

    Ideas for commands: /bag add name | /bag list | /bag give username name-of-bag

    Ideas for permissions: bag.list | bag.add.name | bag.give

    When I'd like it by: Possibly within a week or two?
     
  2. Offline

    Mathias Eklund

    I'm a little confused about the commands. I don't really know how to ask about it either as I'm too confused and unable to really understand what I'm reading, but maybe I'm just a little bit too tired. I'll check back and re-read tomorrow.
     
  3. Online

    Y1ght

    I'll put it in the simplest way I can;

    While holding a item, this means any item, even with damage values (If you can't do damage values, then just make it a regular item for example) you would type /bag add name (name could be) schoolbag for example. This is only a placeholder name, when saving the bag, it saves it's name with any "color codes" and any item lore that it would have.

    /bag list would list any bags the any player has saved.

    /bag give username bagname (Pretty self explanatory, but it'd give the user who your typing out with a bag.)
     
  4. Offline

    BlackScorpyon04

    Last edited: Dec 3, 2020
  5. Online

    Y1ght

    I am going to test it right now, thank you.

    I sometimes wonder if people actually read these threads, it's for 1.13 and you made it for 1.14 .. this is the stuff that pops up in console when loaded in:

    [22:39:17 ERROR]: Could not load 'plugins\RPBags.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: Unsupported API version 1.14
    at org.bukkit.craftbukkit.v1_13_R2.util.CraftMagicNumbers.checkSupported(CraftMagicNumbers.java:226) ~[patched_1.13.2.jar:git-Paper-652]
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:130) ~[patched_1.13.2.jar:git-Paper-652]
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:334) ~[patched_1.13.2.jar:git-Paper-652]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:255) ~[patched_1.13.2.jar:git-Paper-652]
    at org.bukkit.craftbukkit.v1_13_R2.CraftServer.loadPlugins(CraftServer.java:331) ~[patched_1.13.2.jar:git-Paper-652]
    at net.minecraft.server.v1_13_R2.DedicatedServer.init(DedicatedServer.java:235) ~[patched_1.13.2.jar:git-Paper-652]
    at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:787) ~[patched_1.13.2.jar:git-Paper-652]
    at java.lang.Thread.run(Thread.java:834) [?:?]
     
    Last edited: Dec 3, 2020
  6. Offline

    Shqep

    Don't know if you actually meant it as this came off as a bit rude and ungrateful. Sorry if I misunderstood it.

    Also @BlackScorpyon04, maybe use NBTTags or Persistent Data Holders (idk i do stuff in 1.8) to store backpack's data like unique identifiers to make them unstackable?
     
  7. Online

    Y1ght

    Hey, it's you! Also, sorry if it came off like that, this isn't the first time that someone has ignored my thread, I was just pissed off that night, sorry if anything of that came off as "Ungrateful" and "Rude" Also by, "ignored" I mean that they didn't fully read it.

    I am very grateful for people who make plugins for free for the community, and I really do love to see the community help each other out. It was a unneeded comment, and I am sorry for that.
     
    Shqep likes this.
  8. Offline

    gochi9

    Does that mean that every with the same name has the same inventory?
    For instance let's that a player used a bag named "kkjh" does that mean that when you do /bag give "kkjh" you will receive the items that the player has put in it up until now? If so does it keep updating so if the player puts/or takes more items from the bag will that update your bag?
     
  9. Online

    Y1ght

    I'll put it simple;

    When you spawn in a bag, that bag has it's own stuff in it. Only admins can spawn in bags, players can not, players have to buy these bags from shops which are player-ran but are bought from admins and such. Each bag has it's own inventory, if you spawn in one, it's has it's own unique inventory, if passed to a different player, that player also can see the items in that bag and can do whatever. I want these bags to be "realistic" when it comes to when you drop it to a different player.
     
  10. Offline

    gochi9

    This is the plugin

    I haven't had time to test it so please report any bugs if there are any.
    The plugin should work with every version 1.13+ (in case you wanted to use it on a newer version and you wouldn't find me to update it again)

    Commands:
    /bag give [player] [bagName] - Permission: roleplaybags.give
    /bag add [bagName] - Permission: roleplaybags.add - You must have an item in hand
    /bag list - Permission: roleplaybags.list
    /bag reload - Permission: roleplaybags.reload
    /bag help [or any invalid argument] - Permission: roleplaybags.help
     
  11. Online

    Y1ght

    Thank you, I will test this when I have the time and I'll update you on it later.

    //EDIT\\
    My friend tested it for me, he said it works, but it doesn't support item damage values, but that's okay. If you can try fixing this, that would be great, if not, all g, thanks for making it, it works.
     
    Last edited: Dec 7, 2020

Share This Page