sakurawald / fuji

A mod that ports EssentialsX / CMI from bukkit to fabric.
GNU General Public License v3.0
40 stars 5 forks source link

feature request: add /invsee and /endersee #67

Closed fucksophie closed 2 months ago

fucksophie commented 2 months ago

Fuji is currently missing:

/sudo 
/invsee and /endersee

/invsee <player> lets moderators see other people's inventory /endersee <player> lets moderators see other people's ender chest

/sudo <player> <command> lets moderators run commands as other people. There should also be a sudo command like /sudo Notch c:Hello World that sends a message, like EssentialsX.

Essentials-commands does have these, but it's non-FOSS and I'd like not to use it.

sakurawald commented 2 months ago

The /sudo is in run module, using: /run as fake-op .... The output commands: are /send-message, /send-broadcast, /send-title, /send-actionbar and /send-toast.

sakurawald commented 2 months ago

The /invsee and /endersee is in the plan.

fucksophie commented 2 months ago

The /sudo is in run module, using: /run as fake-op .... The output commands: are /send-message, /send-broadcast, /send-title, /send-actionbar and /send-toast.

Sudo with sudo <name> c:Hi will send a message to everybody, as that user. Like /sudo Notch c:Hi! Notch: Hi!

This can be .. kinda horribly recreated with fuji's current tools, but it just looks horrible. /execute as @a run run as fake-op @s send-broadcast %fuji:player_prefix%%player:displayname_visual%%fuji:player_suffix%: Hi

sakurawald commented 2 months ago

Fuji is currently missing:

/sudo 
/invsee and /endersee

/invsee <player> lets moderators see other people's inventory /endersee <player> lets moderators see other people's ender chest

/sudo <player> <command> lets moderators run commands as other people. There should also be a sudo command like /sudo Notch c:Hello World that sends a message, like EssentialsX.

Essentials-commands does have these, but it's non-FOSS and I'd like not to use it.

The command /run as fake-op ... is a bit verbose, you can use command-alias module to create your own command. Here is the example config:

    "command_alias": {
      "enable": true,
      "alias": [
        {
          "from": [
            "sudo"
          ],
          "to": [
            "run",
            "as",
            "fake-op"
          ]
        }
      ]
    },
sakurawald commented 2 months ago

The /sudo is in run module, using: /run as fake-op .... The output commands: are /send-message, /send-broadcast, /send-title, /send-actionbar and /send-toast.

Sudo with sudo <name> c:Hi will send a message to everybody, as that user. Like /sudo Notch c:Hi! Notch: Hi!

This can be .. kinda horribly recreated with fuji's current tools, but it just looks horrible. /execute as @a run run as fake-op @s send-broadcast %fuji:player_prefix%%player:displayname_visual%%fuji:player_suffix%: Hi

Hey, how about adding another command for this purpose? https://github.com/sakurawald/fuji-fabric/issues/68

fucksophie commented 2 months ago

Hey, how about adding another command for this purpose? https://github.com/sakurawald/fuji-fabric/issues/68

Perfect! Exactly what I need.

sakurawald commented 2 months ago

completed in fuji v1.5.1