summaryrefslogtreecommitdiffstats
path: root/EssentialsiConomyBridge/src/com/nijiko/coelho/iConomy/existCheck.java
blob: f01e686bf538a017926f9e489d0ab4a0b8066a87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.nijiko.coelho.iConomy;

import java.util.logging.Logger;
import org.bukkit.Bukkit;


public class existCheck
{
	private static final Logger logger = Logger.getLogger("Minecraft");
	//We have to make sure the user exists!
	public static boolean exist(String name)
	{
		
		if (name == null)
		{
			logger.info("Essentials iConomy Bridge - Whatever plugin is calling for users that are null is BROKEN!");
			return false;
		}
		if (Bukkit.getServer().getPlayer(name) != null)
		{
			return true;
		}
		return false;
	}
}