mirror of
https://bitbucket.org/HeshamTB/greet.git
synced 2024-11-22 05:22:16 +01:00
commit
6ea1095dc7
@ -3,5 +3,6 @@
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="lib" path="C:/Users/Hesham/Desktop/spigot-1.12.2.jar"/>
|
||||
<classpathentry kind="lib" path="/home/hesham/eclipse-hesham/greet/libs/spigot-1.12.jar"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
BIN
libs/spigot-1.12.jar
Normal file
BIN
libs/spigot-1.12.jar
Normal file
Binary file not shown.
@ -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();
|
||||
|
16
src/i/hesh/greet/sender.java
Normal file
16
src/i/hesh/greet/sender.java
Normal file
@ -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() {}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user