zDevelopers / UHPlugin

Plugin UltraHardcore (“Kill the Patrick”), augmenté. | UHC (“KTP”) plugin, improved.
Other
32 stars 24 forks source link

Add a command for use by players to just join a team (and a chat-based GUI) #47

Closed Amunak closed 9 years ago

Amunak commented 10 years ago

I think it would be nice to have a shortcut command to /uh team join , since it is probably the most used command and it is quite hard to type. Maybe just /team ?

It would be also great if it came in the variant with just (i.e. making default to current player), so it would be /uh team join [player=amunak] and /team [player=amunak] respectively.

Ideally it would also have separate permissions (uh.team would give you full "team management" permissions as it is now and uh.team.self would give you the ability to join a team, but none of the other team commands).

AmauryCarrade commented 10 years ago

I think it would be nice to have a shortcut command to /uh team join , since it is probably the most used command and it is quite hard to type. Maybe just /team ?

/join? Good idea. :)

It would be also great if it came in the variant with just (i.e. making default to current player), so it would be /uh team join [player=amunak] and /team [player=amunak] respectively.

This is possible but can lead to conflicts in some cases, because the team name can contain spaces (ex: with a player named the, two teams the team name and team name, if I execute /uh team join the team name with the player name optional...). But it's not a big problem I think.

Ideally it would also have separate permissions (uh.team would give you full "team management" permissions as it is now and uh.team.self would give you the ability to join a team, but none of the other team commands).

I think I'll add permission for each subcommand; with this implemented, the permission would be uh.team.join; I'll add also the permissions uh.team.join.self and uh.team.leave.self.

Amunak commented 10 years ago

team name can contain spaces (ex: with a player named the, two teams the team name and team name, if I execute /uh team join the team name with the player name optional...).

Oh ok. I like to just keep them named as the colors, it is easier to manage that way. There are several non-elegant solutions:

This is probably so minor issue that you can use the third approach :p

AmauryCarrade commented 10 years ago

Actually, I currently use the third approach when needed, as example in the /uh tp team command :p .

AmauryCarrade commented 10 years ago

Related: a command (+API) displaying the teams available to a player; the player just have to click the name of the team to join this team.

With the tellraw-like formatting.

/uh team chatgui [player]

And with an option to display this “chat UI” when a player out of any team joins, after a configurable delay.