35 lines
1.1 KiB
Java
35 lines
1.1 KiB
Java
package me.lenis0012.mr.commands;
|
|
|
|
import me.lenis0012.mr.MPlayer;
|
|
|
|
import org.bukkit.ChatColor;
|
|
import org.bukkit.entity.Player;
|
|
|
|
public class InfoCommand
|
|
{
|
|
public static void showInfo(Player player)
|
|
{
|
|
ChatColor g = ChatColor.GRAY;
|
|
ChatColor l = ChatColor.GREEN;
|
|
ChatColor r = ChatColor.RED;
|
|
player.sendMessage(g +"==========-{"+l+" Marriage "+g+"}-==========");
|
|
player.sendMessage(l+"/marry <player> "+g+"- Marry a player");
|
|
player.sendMessage(l+"/marry accept "+g+"- Accept a marriage request");
|
|
player.sendMessage(l+"/marry divorce "+g+"- Divorce your partner");
|
|
player.sendMessage(l+"/marry tp "+g+"- Teleport to your partner");
|
|
player.sendMessage(l+"/marry gift "+g+"- Gift your partner the item in your hand");
|
|
player.sendMessage(l+"/marry chat "+g+"- Private chat with your partner");
|
|
player.sendMessage(l+"/marry sethome "+g+"- Set your marriage home");
|
|
player.sendMessage(l+"/marry home "+g+"- Go to your marriage home");
|
|
|
|
MPlayer mp = new MPlayer(player);
|
|
if(mp.isMarried())
|
|
{
|
|
player.sendMessage(g+"Married: "+l+mp.getPartner());
|
|
}else
|
|
{
|
|
player.sendMessage(g+"Married: "+r+"No");
|
|
}
|
|
}
|
|
}
|