sigmasternchen / minecraft-matrix-bridge

GNU Affero General Public License v3.0
8 stars 1 forks source link

Feature: admin commands #10

Closed CRTified closed 2 years ago

CRTified commented 2 years ago

This PR adds a configuration matrix.admin, supposed to match a matrix ID. This user is granted server-level command execution, i.e. that user is able to send messages like /op username to be executed on the minecraft server (The message you'd send in Element is //op username, as single-slash commands are reserved for matrix).

My motivation for this feature was that it enables administration from every matrix client (phone, web browser, etc) without making it necessary to join or even op your own user.

This PR has a copy of a commit found in #8 ( 254c09c ), because I wasn't able to split the hunks further apart so that git allows cherry-picking the feature commit.

CRTified commented 2 years ago

If #7 is merged before this one, it might cause a merge conflict due to both introducing org.bukkit.Bukkit as import.

CRTified commented 2 years ago

Sorry, didn't notice the merge conflict.

sigmasternchen commented 2 years ago

No problem.