mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 04:04:58 +00:00
coping so hard ngl
blaot 😩
still waiting for add to sex config ngl
This commit is contained in:
parent
fafbda40cd
commit
105b3f37ba
1 changed files with 3 additions and 8 deletions
|
@ -10,7 +10,7 @@ import org.bukkit.entity.Player;
|
|||
import java.util.UUID;
|
||||
|
||||
@CommandPermissions(level = AdminLevel.SUPER, source = SourceType.ONLY_IN_GAME)
|
||||
@CommandParameters(description = "Manages your admin login message and other various utilities.", usage = "/<command> <clear <variable> | setlogin <message>>")
|
||||
@CommandParameters(description = "Manages your admin login message and other utilities.", usage = "/<command> <clearloginmsg | setlogin <message>>")
|
||||
public class Command_myadmin extends FreedomCommand {
|
||||
@Override
|
||||
public boolean run(CommandSender sender, Player sender_p, Command cmd, String commandLabel, String[] args, boolean senderIsConsole) {
|
||||
|
@ -26,8 +26,7 @@ public class Command_myadmin extends FreedomCommand {
|
|||
|
||||
AdminList.updateIndexLists(); // Update and refresh configuration.
|
||||
return true;
|
||||
} else if ("clear".equalsIgnoreCase(args[0])) {
|
||||
if("loginmsg".equalsIgnoreCase(args[1])) {
|
||||
} else if ("clearloginmsg".equalsIgnoreCase(args[0])) {
|
||||
playerMsg(ChatColor.GRAY + "Cleared your custom login message."); // Notify player that the login message has been set.
|
||||
|
||||
AdminList.getEntry(uuid).setCustomLoginMessage(""); // Set the custom login message to the value.
|
||||
|
@ -35,10 +34,6 @@ public class Command_myadmin extends FreedomCommand {
|
|||
|
||||
AdminList.updateIndexLists(); // Update and refresh configuration.
|
||||
return true;
|
||||
} else {
|
||||
playerMsg(ChatColor.GRAY + "Invalid option, options are: loginmsg.");
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue