Created
April 11, 2016 14:11
-
-
Save itsacorn/1f80519010b1cd6fe54a8340692bd3a3 to your computer and use it in GitHub Desktop.
Server error. LazyStuff.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.hungrybeast.lazystuff; | |
import org.bukkit.ChatColor; | |
import org.bukkit.command.Command; | |
import org.bukkit.command.CommandSender; | |
import org.bukkit.entity.Player; | |
import org.bukkit.plugin.java.JavaPlugin; | |
public class LazyStuff extends JavaPlugin { | |
public boolean onCommand(Command cmd, String label, CommandSender sender, String[] args) | |
{ | |
if (sender instanceof Player) | |
{ | |
if (label.equalsIgnoreCase("nice")) | |
{ | |
Player player = (Player) sender; | |
player.sendMessage(ChatColor.AQUA + "Nice, you sent the Command!"); | |
} | |
} | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment