mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-11 13:33:54 +00:00
let's meme?
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
package me.totalfreedom.totalfreedommod.command;
|
||||
|
||||
import java.util.Arrays;
|
||||
import me.totalfreedom.totalfreedommod.admin.Admin;
|
||||
import me.totalfreedom.totalfreedommod.rank.Rank;
|
||||
import me.totalfreedom.totalfreedommod.util.FUtil;
|
||||
@ -12,6 +11,8 @@ import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
@CommandPermissions(level = Rank.OP, source = SourceType.BOTH)
|
||||
@CommandParameters(description = "Manage my admin entry", usage = "/<command> [-o <admin>] <clearips | clearip <ip> | setlogin <message> | clearlogin | settag <tag> | cleartag | setacformat <format> | clearacformat> | oldtags | logstick>")
|
||||
public class Command_myadmin extends FreedomCommand
|
||||
@ -150,7 +151,14 @@ public class Command_myadmin extends FreedomCommand
|
||||
FUtil.adminAction(sender.getName(), "Setting personal login message" + (init == null ? "" : " for " + targetPlayer.getName()), false);
|
||||
target.setLoginMessage(msg);
|
||||
msg((init == null ? "Your" : targetPlayer.getName() + "'s") + " login message is now: ");
|
||||
msg("> " + FUtil.colorize(msg).replace("%name%", targetPlayer.getName()));
|
||||
if (msg.contains("%name%"))
|
||||
{
|
||||
msg("> " + FUtil.colorize(msg).replace("%name%", targetPlayer.getName()));
|
||||
}
|
||||
else
|
||||
{
|
||||
msg("> " + ChatColor.AQUA + targetPlayer.getName() + " is " + ChatUtils.colorize(target.getLoginMessage()));
|
||||
}
|
||||
plugin.al.save();
|
||||
plugin.al.updateTables();
|
||||
return true;
|
||||
|
@ -209,8 +209,14 @@ public class RankManager extends FreedomService
|
||||
loginMsg = ChatUtils.colorize(admin.getLoginMessage());
|
||||
}
|
||||
}
|
||||
|
||||
FUtil.bcastMsg(loginMsg.replace("%name%", player.getName()));
|
||||
if (loginMsg.contains("%name%"))
|
||||
{
|
||||
FUtil.bcastMsg(loginMsg.replace("%name%", player.getName()));
|
||||
}
|
||||
else
|
||||
{
|
||||
FUtil.bcastMsg(ChatColor.AQUA + player.getName() + " is " + loginMsg);
|
||||
}
|
||||
plugin.pl.getPlayer(player).setTag(display.getColoredTag());
|
||||
|
||||
if (isAdmin)
|
||||
|
Reference in New Issue
Block a user