diff --git a/libs/spigot-1.12.jar b/libs/spigot-1.12.jar new file mode 100644 index 0000000..01ad3e8 Binary files /dev/null and b/libs/spigot-1.12.jar differ diff --git a/src/i/hesh/greet/commands.java b/src/i/hesh/greet/commands.java index b82b6cb..6eb5ef3 100644 --- a/src/i/hesh/greet/commands.java +++ b/src/i/hesh/greet/commands.java @@ -26,6 +26,7 @@ public class commands extends JavaPlugin { String greetprefix = ChatColor.AQUA + "[" + ChatColor.BLUE + "greet" + ChatColor.AQUA + "] "; //[ greet ] Player p = (Player) sender; + //use sender class if(cmd.getName().equalsIgnoreCase("opcheck")) { String pName = p.getDisplayName(); diff --git a/src/i/hesh/greet/sender.java b/src/i/hesh/greet/sender.java new file mode 100644 index 0000000..fdcb9c2 --- /dev/null +++ b/src/i/hesh/greet/sender.java @@ -0,0 +1,16 @@ +package i.hesh.greet; + + +import org.bukkit.*; +import org.bukkit.entity.Player; + +public class sender { + private static final String PREFIX = ChatColor.AQUA + "[" + ChatColor.BLUE + "greet" + ChatColor.AQUA + "] "; //[ greet ] + public static void sendToPlayer(Player p, String msg, ChatColor c) { + p.sendMessage( PREFIX + c + msg); + + } + public static void sendToAll() {} + + +}