[INACTIVE] GlobalChestBanking

Discussion in 'Inactive/Unsupported Plugins' started by RedFoxRedI, Aug 6, 2011.

  1. Offline

    RedFoxRedI

    Exote, tommygoesha and BioRage like this.
  2. Offline

    Tealk

    its possible to make a permissions node, that player must pay the accessCost and a ather group its 4 free?
     
  3. Offline

    Dev909

    Ill see if i can find where its conflicting.....this is gonna be fun haaha
     
  4. Offline

    RedFoxRedI

    @Dev909 I rather meant: how do you notice that there is a conlict?

    @Tealk Yeah thats possible and i will add it with the next version
     
  5. Offline

    Dev909

    @RedFoxRedI
    well, i can install the plugin just fine same with using it, but whenever I go to a IndustrialCraft machine, it kicks you out saying that theres a internal server error. I removed it and it was gone, so im guessing its with Spout or BukkitContrib because I orignally only had GCB without any of those dependecies and the machines worked!
     
  6. Offline

    RedFoxRedI

    If you have something in the log, like a error message, please post it.

    EDIT: But you haven't tried to run BukkitContrib and Spout at the same time, have you?
     
  7. Offline

    Dev909

  8. Offline

    Tealk

    Thanks
     
  9. Offline

    Ziden

    It seems sometimes the bank items just disapear. Im running the plugin on a 80 players server, the bank is one of the only ways players can secure items, and a few of them are complaining theyr items are gone. Im not sure how this worked out, on what exactly it failed, but i think something is reseting the bank. Maybe a server crash.
     
  10. Offline

    RedFoxRedI

    @Ziden Normally the content of a account is written to the hard drive every time you close the inventory or the server shuts down normally (via the /stop command). So the only possiblity that something disappears is when a player gets disconnected while using the bank or the server crashes while the player is using it. Otherwise there must be some kind of message in the server log.
    Ok, maybe there is a third possiblity. When an player closes his account and then opens it right after that, before the content was saved to hard drive.

    In order to support the suggested groups I had to restructure the plugin completly, I will have a look at this problem before I release the new version. So if I find something that would explain why items dissapear I will fix it with the new version. Besides it could be helpful if these people could remember wheter they done something special before their items disappeared. And some additional information, like how many items went lost, etc.

    @Dev909 I am a little bit busy finishing the next version, but I will have a look at what causes your problem, please hold on :(
     
  11. Offline

    Kardocraft

    Player from my server had the same thing. But I didnt rembember something special when items disappear. Maybe something with /reload? I heard that with other plugins it could be too fast and not saving everything right.
     
  12. Offline

    Dev909

    @RedFoxRedI
    no problem, ill just make a local bank outta bedrock for now haha
     
  13. Offline

    Ziden

    You could use a little cashed memory instead of directly writing on hard drive, to avoyd this i think.
     
  14. Offline

    RedFoxRedI

    @Ziden Yes you are right. Basically I added some Locks to provide that something is read while it is saved.

    I decided that there were lot of changes and that the next version will be 2.0.0, because the whole system inside is completly different. Of course I will provide an Updater from 1.2.3 to 2.0.0 so that all the saves can be ported, hopefully without loosing anything.
     
    Ziden likes this.
  15. Offline

    Ziden

    Hopefully ? Ill get ur older version n update it if u make players loose theyr items !! gawrl !! :D

    Thanx for the awesome work
     
  16. Offline

    RedFoxRedI

    Currently I am working on double chests, so that you just have to add one of the blocks and then its recognized as a double chest (if it actually is).

    I am confident that I can publish the new version in the coming days. So if somebody has an idea (that does not stand on one of the list or was already posted) what to add, please tell me as fast as possible ;)
     
  17. Offline

    BioRage

    It's a long shot, but you could add "Npc Support" With just a guy standing beside it, so if you interact with him, you can open the chest with him. However I think it's a whole different concept.

    Edit1:
    Able to deposit iConomy $ into it, because with iConomy, you can turn on if you die, you lose a % of money, I do believe. This way user's will be prone to deposit their money, rather than actually having it on them.
     
  18. Offline

    RedFoxRedI

    As long as I dont know a way to make an npc look like a banker, I will not add any npc support. Besides I think that all developers rather wait for update 1.8 before they make somethning with npcs. But anyway interesting idea. Maybe in the future there can be a nearly realistic bank building and inside you have some desks where you can withdraw/deposit etc. That would be awesome :D

    The thing with the money would require to have some kind of item that represents money (otherwise you cant put it into a chest). And new items would need client side mods (...)

    I will come back to these when time comes :)
    But thx for your input!

    Let's make a poll (or kind of). So if you have a opinion on any of the following points, please post it.

    1. For the groups I decided to make a seperate gcb group system, that is independent from permissions. From my porint of view this choice has 2 benefits. First one, the leader of the group can assing members without having access to the permissions groups. Second one, i really don't think that you want to mess up your permission configs with additional groups only for gcb, and I dont see any advantage of having a group account for groups like 'Guests'.

    2. To support the groups I added new commands. The basic structure is: /gcb group [subcommand] [args], e.g.
    /gcb group create [groupname] would create a new group, while /gcb group add [groupname] [playername] would add a player as a member of the group, and lots more. Of course I can add synonyms: group -> gr or something like that.

    3. To distinguish between playernames and groupnames, groups now have the prefix '#'.

    4. Every group has a leader. The leader can remove/add members, give leadership to someone else and delete the group. For creating a group and/or setting a chestbank to be a groupbank there will be a iConomy value. Besides there are permission nodes for admins, so that they can make the same things as the leader of a group

    5. In order to keep it as leightweight as possible I decided to restrict the access to a groupaccount to one user at a time. Otherwise there must be some kind of realtime syncing between the players. As for now I havent had any idea on how to make it nice and simple. It could be that I will change this within a later version.

    6. To prevent strange bugs, the chestsize can only be one of the following numbers: 9, 18, 27, 36, 45, 54

    7. When you look at a chest and type /gcb it shows you information about wheter this chest is a chestbank, and if so wheter its a groupchest etc.

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

    RedFoxRedI

    I released a stable Development Build and I hope that there are some brave minecrafters outside, who will test it :D

    You can find all the necessary information under 'Development Builds' (first post)
    Please read carefully before doing anything. If you follow exactly the steps I wrote down you likely will succeed.

    I implemented most of the things that were wished by you and the ones from the suggestion list will follow in the near future.
    If you dislike some details of the new version please let me know. If you are not interested in using the new group system just use GCB as before and don't care about them, they are completly optional.
     
  20. Offline

    indigomontoya

    when I set a chest access fee I get charged but then the "bank" part of the chest doesnt work. It acts like a normal chest but just charges me for use.
     
  21. Offline

    RedFoxRedI

    To avoid missunderstandings: about which version are we talking?
    Are there any errors in the server log or any error messages displayed?
    I tested it a moment ago and it seems to work. Are you sure it is a normal chest, because at the inside accounts do not differ from normal chests.

    Has anyone else this issue too?
     
  22. Offline

    TOAST7312

    Love the idea of this plugin @RedFoxRedI, But I was wondering if would it be possible to get support for MultiCurrency on this? I was thinking of switching over, but not a lot of mainstream plugins using economies seem to support it. Dunno why; there's info on how to hook into it on the OP.
     
  23. Offline

    RedFoxRedI

  24. Offline

    gameswereus

    Maybe I'm too tired, but I didn't understand a thing for 2.0 coming out.
     
  25. Offline

    Scandragon

    One suggestion.. Have multiple different bank chests (and ability to set a different one time fee on them).
    So it'd be /gcb add bank1 (or bank2 or maybe just a number)
    All chests added with the same name would be linked..

    This would allow you to buy access to more chestbanks when you need more storage, and would certainly be used by many
     
  26. Offline

    RedFoxRedI

    @gameswereus when I release ver 2.0 I will also make some kind of tutorial, besides it would be awesome if you could be more specific :confused:

    @Scandragon I think it would be kind of confusing to add a additional system of different banks. As for now (ver 2.0) you can realize it by creating a group, as long as only one player is in this group, it's like his personal second bank. And then you can make a 3rd, a 4th and so on. And by setting a fee for creating a group or groupbank you can simulate buying more space. What I can imagine, is that it will be possible in the future to add more chests by using Spout. And then they can have like different colors or logos on it and many more.
     
  27. Offline

    Safetybrick

    Im getting this with my banks, any ideas? I'm using version 1.2.3. seems to work for some of my players but not me.

    2011-08-20 19:56:10 [SEVERE] Could not pass event PLAYER_INTERACT to GlobalChestBanking
    java.util.NoSuchElementException
    at java.util.Scanner.throwFor(Unknown Source)
    at java.util.Scanner.next(Unknown Source)
    at java.util.Scanner.nextInt(Unknown Source)
    at java.util.Scanner.nextInt(Unknown Source)
    at globalchestbanking.GlobalChestBankingPlugin.stringToItemStack(GlobalChestBankingPlugin.java:414)
    at globalchestbanking.GlobalChestBankingPlugin.getAccContent(GlobalChestBankingPlugin.java:384)
    at globalchestbanking.GlobalChestBankingPlayerListener.onPlayerInteract(GlobalChestBankingPlayerListener.java:65)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:210)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  28. Offline

    RedFoxRedI

    That problem occurs if your account file is corrupted. The content has the format:
    <Item1ID>;<Item1Damage>;<Item1Amount>;<Item2ID>;<Item2Damage>;<Item2Amount>

    If you cant fix it send it to me via PM.
     
  29. Offline

    Safetybrick

    Got it, for some reason it had a double entry for some half blocks(44) i placed in the bank. showed 44;0;0;44;0. not sure why the second entry was there or why the item amount was 0.
     
  30. Offline

    RedFoxRedI

    Therefore i renewed the system completly and this shouldnt happen in 2.0 anymore.
     
  31. Offline

    toxic.wolf666

    Hi, great plugin!
    I've installed your 2.0 plugin onto my server and everything is working apart from one: Chest size for different Groups.
    Just to check, these are the Permissions Groups right?
    Heres the exact contents of my chestsize_groups.txt:

    default=9
    admin=54
    user=18
    mod=36

    Am I doing something obviously wrong?

    EDIT: I've just realised how unclear my original post was. When a user accesses the bankchest, they have the usual 27 slots, and can use them all. Same with a mod or default player; it doesn't matter what group a player is in, they still have the same amount of slots.

    EDIT 2: Wait a second, I'm using the PermissionsBukkit plugin to Bridge superperms, and tricks other plugins that don't support superperms into thinking that it is Permissions 2.7.7 - I'm guessing this is why it's not working? The 'fake' Permissions version is too old?

    If so could you please add superperms/PermissionsBukkit support?
     

Share This Page