mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-07-09 04:04:00 +00:00
Fully comment out debug code to work on 1.7.10
Need to remove all of this ugly debug code in the future!
This commit is contained in:
parent
c29607b55e
commit
00032823cc
@ -3,17 +3,17 @@ package mineverse.Aust1n46.chat.command.chat;
|
|||||||
import mineverse.Aust1n46.chat.MineverseChat;
|
import mineverse.Aust1n46.chat.MineverseChat;
|
||||||
import mineverse.Aust1n46.chat.command.VentureCommand;
|
import mineverse.Aust1n46.chat.command.VentureCommand;
|
||||||
import mineverse.Aust1n46.chat.localization.InternalMessage;
|
import mineverse.Aust1n46.chat.localization.InternalMessage;
|
||||||
import net.md_5.bungee.api.chat.ClickEvent;
|
//import net.md_5.bungee.api.chat.ClickEvent;
|
||||||
import net.md_5.bungee.api.chat.ComponentBuilder;
|
//import net.md_5.bungee.api.chat.ComponentBuilder;
|
||||||
import net.md_5.bungee.api.chat.HoverEvent;
|
//import net.md_5.bungee.api.chat.HoverEvent;
|
||||||
import net.md_5.bungee.api.chat.TextComponent;
|
//import net.md_5.bungee.api.chat.TextComponent;
|
||||||
//import net.minecraft.server.v1_15_R1.IChatBaseComponent;
|
//import net.minecraft.server.v1_15_R1.IChatBaseComponent;
|
||||||
//import net.minecraft.server.v1_15_R1.PacketPlayOutChat;
|
//import net.minecraft.server.v1_15_R1.PacketPlayOutChat;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
//import org.bukkit.ChatColor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
//import org.bukkit.craftbukkit.v1_15_R1.entity.CraftPlayer;
|
//import org.bukkit.craftbukkit.v1_15_R1.entity.CraftPlayer;
|
||||||
import org.bukkit.entity.Player;
|
//import org.bukkit.entity.Player;
|
||||||
|
|
||||||
public class Venturechat implements VentureCommand {
|
public class Venturechat implements VentureCommand {
|
||||||
private MineverseChat plugin = MineverseChat.getInstance();
|
private MineverseChat plugin = MineverseChat.getInstance();
|
||||||
@ -23,19 +23,19 @@ public class Venturechat implements VentureCommand {
|
|||||||
sender.sendMessage(InternalMessage.VENTURECHAT_VERSION.toString()
|
sender.sendMessage(InternalMessage.VENTURECHAT_VERSION.toString()
|
||||||
.replace("{version}", plugin.getDescription().getVersion()));
|
.replace("{version}", plugin.getDescription().getVersion()));
|
||||||
sender.sendMessage(InternalMessage.VENTURECHAT_AUTHOR.toString());
|
sender.sendMessage(InternalMessage.VENTURECHAT_AUTHOR.toString());
|
||||||
if (sender instanceof Player && plugin.getConfig().getString("loglevel", "info").equals("debug")) {
|
// if (sender instanceof Player && plugin.getConfig().getString("loglevel", "info").equals("debug")) {
|
||||||
Player player = (Player) sender;
|
// Player player = (Player) sender;
|
||||||
String title = ChatColor.GOLD + " | " + ChatColor.BLUE.toString() + ChatColor.BOLD + "SpigotAPI chat message" + ChatColor.RESET + ChatColor.GOLD + " | ";
|
// String title = ChatColor.GOLD + " | " + ChatColor.BLUE.toString() + ChatColor.BOLD + "SpigotAPI chat message" + ChatColor.RESET + ChatColor.GOLD + " | ";
|
||||||
String spaces = " ";
|
// String spaces = " ";
|
||||||
TextComponent tcSpaces = new TextComponent(spaces);
|
// TextComponent tcSpaces = new TextComponent(spaces);
|
||||||
TextComponent message = new TextComponent(title);
|
// TextComponent message = new TextComponent(title);
|
||||||
message.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("Click here to rank up!").create()));
|
// message.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("Click here to rank up!").create()));
|
||||||
message.setClickEvent(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, "Sample SpigotAPI Click Event"));
|
// message.setClickEvent(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, "Sample SpigotAPI Click Event"));
|
||||||
tcSpaces.addExtra(message);
|
// tcSpaces.addExtra(message);
|
||||||
player.spigot().sendMessage(tcSpaces);
|
// player.spigot().sendMessage(tcSpaces);
|
||||||
|
//
|
||||||
// sendActionBar(player, "NMS ActionBar message");
|
//// sendActionBar(player, "NMS ActionBar message");
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
// public static void sendActionBar(Player player, String message) {
|
// public static void sendActionBar(Player player, String message) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user