mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-12 05:53:53 +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)
|
||||
|
@ -3,6 +3,6 @@ main: me.totalfreedom.totalfreedommod.TotalFreedomMod
|
||||
version: ${tfm.build.version}
|
||||
description: Plugin for the Total Freedom server.
|
||||
depend: [Aero]
|
||||
softdepend: [BukkitTelnet, Essentials, LibsDisguises]
|
||||
softdepend: [BukkitTelnet, Essentials, LibsDisguises, WorldEdit]
|
||||
authors: [Madgeek1450, Prozza]
|
||||
api-version: 1.13
|
||||
|
Reference in New Issue
Block a user