Filled No Scroll

Discussion in 'Plugin Requests' started by Regina715, Jan 21, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    Regina715

    Plugin category: Admin/Developer Tools

    Suggested name: NoScroll

    What I want: I would like a plugin where whenever somebody scrolls on the 1st and 9th slot on the Hotbar that it will not go onto that slot, it will just go to the 8th slot. There is a item in the 1st and 9th slot that is renamed to "X" . I would like that item to be a Activator rail. Th reason why is because I have this server but the hotbar has only 7 slots, but I cant find a plugin that forbids someone from scrolling on that slot. I've seen something like that on a server before so I know it is possible. Also, whenever someone drags and drops an item onto the first or second slot the item wont go on that slot.


    It is very important that players can't move the item out of that slot, and put the item in any container. I will give %100 credit to the developer.

    Thanks!
     
  2. Offline

    Javlin

    EDIT: I was wrong. Trying it now.
    EDIT2: Done. That was easier than expected. Any problems message me.
     
    Last edited: Jan 21, 2016
  3. Offline

    Jaackk


    I'm pretty sure this can be done by replicating the way in which cosmetics can be added to players inventories on hub servers. These are non-moveable and are still an item. You could use this method. I'm not a coder but I know this is possible. You could have the same method done with a barrier item entity and have it not run any commands. This item would sit in a certain slot and stay there permanently.

    Hope I have been of help,

    Best Regards,
    Jack.
     
  4. Offline

    Regina715

    Hello, I loaded the plugin, and restarted the server, and I can still scroll on slots 1 and 9. Is there a special thing I have to set up? I would like some info on this.

    Thanks,
    -Regina
     
  5. Offline

    Javlin

    Whoops, compiled with Java 8. Here is a Java 7 version.
     
  6. Offline

    Refrigerbater

    That one Javlin posted isn't really what @Regina715 asked for. I think this is more of what they were looking for: https://www.dropbox.com/s/pfi57bdua4vbvel/NoScroll-1.0.jar?dl=1

    • cant scroll to slots 1 and 9
    • cant take the items out of slots 1 and9
    • cant replace the items in slots 1 and 9
    • upon death, the items in slots 1 and 9 are removed from the drops
    • upon respawn the items you wanted are put back in slots 1 and 9
    At the moment there is no config for anything, if you want to be able to configure anything please ask.
     
  7. Offline

    Regina715


    Dear Refrigerbater, Thank you so much for your help! I appreciate you helping me. Also thank you Javlin for attempting to help, and Jaackk for telling me how it is done. I appreciate all your help!

    Sincerely,
    -Regina

    @Refrigerbater

    Is it possible you can make a simple config which just changes the item that you can't scroll onto? Make it something like this:

    NoScroll_Item={ItemID}


    For example if I want Coco beans to be the No Scroll item, I'll do this:

    NoScroll_Item=351~3

    And if a want a Emerald I'll do:

    NoScroll_Item=388


    Thanks,
    -Regina

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

    Refrigerbater

    was going to do this but thought you didnt want it :p ok ill do it right now

    Edit: https://www.dropbox.com/s/pfi57bdua4vbvel/NoScroll-1.0.jar?dl=1
    Item: {id}
    Meta: {damageValue/meta}

    Ex:
    Cocoa Beans -
    Item: 351
    Meta: 3
     
    Last edited: Jan 22, 2016
  9. Offline

    Regina715

    Last edited by a moderator: Jan 23, 2016
Thread Status:
Not open for further replies.

Share This Page