Plugin category: Roleplay / Fun? Minecraft version: 1.13.2 Suggested name: PlayerCarry What I want: I'll try to keep this short and clean. again! When you look at a player, and type /carry while looking at them, it'd ask in chat. {Username} is requesting to carry you. [Accept] - Making the accept a clickable button where when clicked, it'd put you on their head. When you type /uncarry it'd throw the person you are carrying off your head. To normally get off, you press shift. If you need to use a API or any supported plugins, please do, I'll use it! I don't want it where you only look at the head, I want it where you can look at any part of the body! //EDIT\\ I use a plugin called simplesit, they have an API you can use if anyone ends up doing this. Ideas for commands: /carry | /uncarry Ideas for permissions: I'd prefer this to be a default permission, if you'd like. carry.carry carry.uncarry When I'd like it by: Take your time!
@Y1ght I could do this. But, doesn't it seem impractical to make a player type a command to carry someone whilst the victim could be moving around. Is something like sneak right clicking the target a possible option?
Hello, if you could do both that'd be amazing, I love it when people bring up unique ideas that I haven't thought of yet, yes I'd like you to make it where you can; Sneak + Right click the person to send a request, also make sure to just add the regular /carry ! Also, I use a different plugin that displays descriptions, it requires you to right click, I hope that won't interfere?
Issue is theirs no easy way to detect if a player is looking at another player so this may take some time. Busy atm, I'll start on it later in the week but if anyone else wants to take this project, feel free.
You could use PlayerInteractEntityEvent and check if the entity right clicked is a player https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/player/PlayerInteractEntityEvent.html
Like I said, this would be the ideal solution to make it based on player interaction. OP is asking for Player looking at entity detection which isn't easy nor accurate. I've abandoned the project.
This is the plugin So i have added a distance in blocks of how close a player needs to be when they are looking at them and how close they need to be to accept. Also i have added commands in case the player does not that they can click the message in the the accept to accept or deny. commands: /carry - Send an invite to the player that you are looking /carry accept - Accept carry invite /carry deny - Deny Carry invite The above commands have the permission: playercarry.cmds /carry reload - Reload the config - Permission: playercarry.reload
Thanks, I'll test it out in a bit. //EDIT\\ Hey, can you add that /uncarry command to force a player off the head? If so, everything works fine! Thank you so much for filling my request.
Is there any chance you can make it /drop ? or does it have to have the /carry for the main? If so, can you change it to /carry drop? If not, that's all good, thanks.
Thank you, that'll work fine, I'll test it, if it all works, I'll mark it as filled, thank you so much for filling my request.