Filled Set Player's Inventory Slot (Very Very easy plugin)

Discussion in 'Archived: Plugin Requests' started by Sw_aG, Jul 27, 2014.

  1. Offline

    Sw_aG

    Dear very kind Plugin makers,

    Plugin category: Admin-tools

    Suggested name: SetPlayer'sInvSlot

    What I want: I want a plugin that add a command (To the console and the console only!) That set's the player's selected inventory slot.

    I want in the config to be: None

    Ideas for commands: /invset {player name} {slot}

    Example for command: /invset Sw_aG 1

    Ideas for permissions: None, i want the console ONLY to be able to run that command!

    When I'd like it by: ASAP

    Version: 1.7.2 R3

    Thanks In advance! :rolleyes:
     
  2. Offline

    tempelis

    Working on it at the moment.

    -----Edit-----
    Sw_aG
    I read the post wrong; you can't change the slot someones cursor is on, that is client side. However, you can change what the item on their cursor is, if you want me to do something with that.
     
  3. Offline

    Sw_aG

    tempelis How's that a client side?
    There's a server (The nexus) that have a plugin like that!
     
  4. Offline

    tempelis

    Oh I will do more research on it. Give me a second.
     
    Sw_aG likes this.
  5. Offline

    Sw_aG

  6. Offline

    Onlineids

    tempelis setHeldItemSlot(slot)
    Very simple
     
    Sw_aG likes this.
  7. Offline

    tempelis

    Thank you Onlineids,
    Testing plugin now.
    @Sw_aG
    Plugin is finished do you want me to send the user a notification their slot has been changed or anything?
    Let me know if I have to change anything,
    the slots are natively 0-8 so if you want the commands to work slot 1-9 let me know.
    /Invset {player} {SlotNumber(0-8)}
    Download Link:
    https://www.dropbox.com/s/zl79mpnhx8vdb1z/SlotChanger.jar
     
  8. Offline

    Deleted user

    Sw_aG
    I'm pretty sure this is possible. Let's take a stab at it, shall we?

    EDIT:
    Onlineids
    In which class does that method exist?

    EDIT 1:
    nvm
     
    Sw_aG likes this.
  9. Offline

    Sw_aG

    tempelis I'll try it right now!, thanks every1 for you help :D

    tempelis The plugin is exactly as i wanted! Thanks a lot mate i'm apperciate it a lot :p
    Onlineids zombiekiller753 Thanks a lot for your help :)

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

Share This Page