ClassiCube / MCGalaxy

A Minecraft Classic / ClassiCube server software
GNU General Public License v3.0
175 stars 83 forks source link

Suggestion: Alternative message to players who don't have /tp perms but have /tpa perms #534

Open MasterlazorX opened 4 years ago

MasterlazorX commented 4 years ago

Just a small suggestion, when players type /tp and don't have the perms but does have perms for /tpa, it would send a different message. My idea for the message would be, "Only (rank)+ can use /teleport. Alternatively, you can use /tpa to request to teleport to players instead."

Goodlyay commented 4 years ago

You can do this with custom$s.txt. For example: &eOnly &cOperator&e+ can use &a/tp:&eOnly &cOperator&e+ can use &a/tp. &ePlease use &a/tpa &einstead.

This entire thing should be one line in the text file.

This replaces the original "only x can use" message with a copy of the message but with an addendum about /tpa. Beware though: it only works assuming that the server default color is &e, that /tp has been set to operator, and that operator's color is &c. You will have to edit it accordingly if your settings are different, or you change them later. The best way to make sure it works is to copy the original message straight from in-game by clicking the chat line in your client (options -> gui options -> clickable chat ON).

It's also worth noting that anything after the : in custom$s.txt can be edited. You don't have to include the original message at all. Here's what I do in my server (reverse scenario as you, we don't use /tpa at all): image

MasterlazorX commented 4 years ago

Somehow, I never knew about this before, thanks!