New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to have custom login messages as OPs #184
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The suggestion hasn't been approved, so the PR will not proceed any further until the suggestion has been approved and a ticket has been raised on Jira.
- Players should be able to pick login messages from GUI or create their own via
/loginmessage <message>
(should the suggestion be approved). - The message should be restricted to a certain number of characters - 100 is too high.
@@ -10,7 +10,7 @@ | |||
import org.bukkit.entity.Player; | |||
|
|||
@CommandPermissions(level = Rank.OP, source = SourceType.ONLY_IN_GAME) | |||
@CommandParameters(description = "Change your login message", usage = "/<command> [message]") | |||
@CommandParameters(description = "Change your login message", usage = "/<command> <message>") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should stay as optional - /loginmessage
will open up the premade login messages (in an inventory)
@@ -24,11 +24,10 @@ public boolean run(final CommandSender sender, final Player playerSender, Comman | |||
|
|||
if (args.length == 0) | |||
{ | |||
playerSender.openInventory(plugin.sh.generateLoginMessageGUI(playerSender)); | |||
msg("You must set a valid login message! Usage: /<command> <message>", ChatColor.RED); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my previous post - /loginmessage
opens up the login message GUI, allowing people to choose the available login messages. All you did was remove the ability to do so and force people to set their own.
Closing due to inactivity |
Implements this suggestion.