Skip to content

[Feature request] /position, /seen, /tempban #13

@JuergenSchT

Description

@JuergenSchT

I would like to request the addition of three commands for server operators, inspired in commands found in the plugin EssentialsX, ordered here in order of importance/relevance for my server:
/position
This command would report the coordinates and dimension of any player currently connected to the server. If no player name is specified, it would default to the user.
Format: /position [playername]
Sample output:

[23:27:20] [Server thread/INFO]: CONSOLE issued server command: /position {PLAYER1}
[23:27:20] [Server thread/INFO]: Current World: world
[23:27:20] [Server thread/INFO]: X: 4,114 (+East <-> -West)
[23:27:20] [Server thread/INFO]: Y: 89 (+Up <-> -Down)
[23:27:20] [Server thread/INFO]: Z: 1,866 (+South <-> -North)
[23:27:20] [Server thread/INFO]: Yaw: 235.365 (Rotation)
[23:27:20] [Server thread/INFO]: Pitch: 28.2 (Head angle)

/seen
This command would report the time that has passed since a player logged out of the server, along with their current position.
Format: /seen <playername>
Sample output:

[02:05:32] [Server thread/INFO]: JuergenSchT issued server command: /seen {PLAYER2}
[02:05:32] [Server thread/INFO]: /seen
[21:05:31] [Render thread/INFO]: [CHAT] Player {PLAYER2} has been offline since 1 hour 22 minutes 13 seconds.
[21:05:31] [Render thread/INFO]: [CHAT]  - IP Address: xxx.xx.xx.xxx
[21:05:31] [Render thread/INFO]: [CHAT]  - Location: (world, -1,723, 63, 1,061)

/tempban
This command would ban a player currently connected to the server for a set amount of time, and after that, automatically unban them.
Format: /tempban <playername> <datediff> [reason]
Sample output:

[18:54:36] [Server thread/INFO]: CONSOLE issued server command: /tempban {PLAYER1} 8h "hora de DnD, bastardo"
[18:54:36] [Server thread/INFO]: Player Console temporarily banned {PLAYER1} for 8 hours: hora de DnD, bastardo.
[18:54:54] [Server thread/INFO]: CONSOLE issued server command: /tempban {PLAYER3} 4h "hora de DnD, bastardo"
[18:54:54] [Server thread/INFO]: Player Console temporarily banned {PLAYER3} for 4 hours: hora de DnD, bastardo.
[18:55:05] [Server thread/INFO]: CONSOLE issued server command: /tempban {PLAYER2} 4h "hora de DnD, bastardo"
[18:55:05] [Server thread/INFO]: Player Console temporarily banned {PLAYER2} for 4 hours: hora de DnD, bastardo.

The above commands' names (and any possible aliases) could be changed if the situation required it.
Thanks for listening.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions