CommandForward

Description

 

This lightweight plugin to forward commands from the bukkit-side to a bungeecord server. It uses plugin-channels to communicate between the server instances. This part of a server->proxy->player connection and requires at least one player to be online. Therefore we don't need to open a port and establish a new connection between the servers. Furthermore on a RedisBungee environment it forwards the command only to currently used proxy by that specified player.

 

Features

 

  • Lightweight
  • Easy to use
  • RedisBungee support (executes command only on the proxy of that player)
  • Forwarding as Player or Console

 

Warning

This plugin cannot forward commands to a bungeecord server if no player is online

 

Permissions

  • commandforward.bukkit.command.forward.* - Allow to use all features of forward command
  • commandforward.bukkit.command.forward - Allow to use base forward command
  • commandforward.bukkit.command.forward.console - Allow to use console in forward command
  • commandforward.bukkit.command.forward.other - Allow to use another player than ourself in forward command

 

How to use

Setup
  • Drop the plugin in the bungee and bukkit server
     
Using it

Execute this command on the bukkit side

/forward bridgePlayer cmd [args...]

bridgePlayer is the player which connection should be used. This is relevant for receiving the output or selecting the correct proxy in a redisbungee environment

cmd is the start of the actual command
[] means it's optional

Example Execute as Player:
/forward playerName ping

Example Execute as Console:
/forward console ping
This will select a random player to forward the connection to the bungee server, but it will be executed as bungee console there.

Source code

 

You don't have to decompile the plugin. Here you can find the source code with comments and building utilities.
CommandForward is open source and hosted on GitHub; feel free to fork, star, or contribute by making pull requests and opening issues.
https://github.com/games647/CommandForward


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    776525
  • Created
    Dec 26, 2022
  • Last Released File
    Dec 26, 2022
  • Total Downloads
    60
  • License

Categories

Members

Recent Files