RemoteCommand

This plugin allows you to execute commands as someone else. It is an "out-of-need-creation" and was coded in less than 30 minutes. I thought I might as well release it, since it's so simple and apparently does not yet exist in this shape.

Features

  • Provides a command to let you execute a command as a different player or the console.
  • The command can also be executed from the console or from a command block.
  • Has various permission nodes to protect you from unwanted commands.
  • You can also send chat messages as that player if you wish.
  • As simple as you would expect it to be.
  • No pointless console outputs that flood your log.

Source code

This plugin is open source on GitHub.

View the source code


Usage

Command syntax is:

  • /as <who> <command|message>

(If the alias "/as" is occupied on your server, use "/remotecmd" )

<who>
Either a name of an online player (may be partial), or console
<command|message>
The command to execute. If it doesn't start with a /, it is considered a chat message (unless <who> is the console).

Note that the command is executed exactly as if the specified player executed it. That means that the checked permissions will be those of the remote player, and any notification or error message of the command will be sent to the remote player.


Permission nodes

remotecommand.*
Gives access to all permissions of this plugin. (default: false)
remotecommand.use
Allows the usage of the "/as" command. (default: op)
remotecommand.console
Allows executing commands as the console. (default: op)
remotecommand.protected
Blocks others without this node to execute commands as the player with this node. You don't want anyone to do nasty stuff as you, the super powerful monster admin, right? ... Right?! (default: op)

That's it. No config, no dependencies, nothing complicated.

If you want to declare your love to me, please put it in the comments. You monster.


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files