fix git
This commit is contained in:
parent
16a8164030
commit
6a3d888f5b
@ -1,5 +1,6 @@
|
|||||||
package mineplex.core.common;
|
package mineplex.core.common;
|
||||||
|
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@ -52,8 +53,10 @@ public enum Rank
|
|||||||
public boolean Has(Player player, Rank rank, Rank[] specific, boolean inform)
|
public boolean Has(Player player, Rank rank, Rank[] specific, boolean inform)
|
||||||
{
|
{
|
||||||
if (player != null)
|
if (player != null)
|
||||||
|
{
|
||||||
if (player.getName().equals("Chiss"))
|
if (player.getName().equals("Chiss"))
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
//Specific Rank
|
//Specific Rank
|
||||||
if (specific != null)
|
if (specific != null)
|
||||||
|
@ -144,7 +144,7 @@ public class Chat extends MiniPlugin
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void lagTest(PlayerCommandPreprocessEvent event)
|
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.getPlayer().sendMessage(F.main(getName(), "PONG!"));
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user