mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 08:25:12 +00:00
Merge pull request #28 from saxnbt/patch-4
Add preview when setting login message
This commit is contained in:
commit
d2b4d733f0
1 changed files with 18 additions and 19 deletions
|
@ -30,9 +30,8 @@ public class Command_myadmin extends FreedomCommand {
|
||||||
} else if (args.length >= 2) {
|
} else if (args.length >= 2) {
|
||||||
if ("setlogin".equalsIgnoreCase(args[0])) {
|
if ("setlogin".equalsIgnoreCase(args[0])) {
|
||||||
final String inputMessage = StringUtils.join(args, " ", 1, args.length); // Parse the input provided.
|
final String inputMessage = StringUtils.join(args, " ", 1, args.length); // Parse the input provided.
|
||||||
|
|
||||||
playerMsg(ChatColor.GRAY + "Set your custom login message."); // Notify player that the login message has been set.
|
playerMsg(ChatColor.GRAY + "Set your custom login message."); // Notify player that the login message has been set.
|
||||||
|
playerMsg(ChatColor.GRAY + "Your login message will show up as: \n" + ChatColor.AQUA + sender_p.getPlayer().getName() + " is " + inputMessage);
|
||||||
AdminList.getEntry(uuid).setCustomLoginMessage(inputMessage); // Set the custom login message to the value.
|
AdminList.getEntry(uuid).setCustomLoginMessage(inputMessage); // Set the custom login message to the value.
|
||||||
AdminList.save(AdminList.getEntry(uuid)); // Save the modified value to the super admin configuration.
|
AdminList.save(AdminList.getEntry(uuid)); // Save the modified value to the super admin configuration.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue