summaryrefslogtreecommitdiffstats
path: root/EssentialsiConomyBridge/src/com/nijiko/coelho/iConomy/existCheck.java
diff options
context:
space:
mode:
authorxeology <xeology@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-02 09:56:40 +0000
committerxeology <xeology@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-02 09:56:40 +0000
commit9d961980e8745bad3a4a1cc4009cdd59de1647cc (patch)
tree7464c3d4ccccfcc6bf0deed77c49e44240445856 /EssentialsiConomyBridge/src/com/nijiko/coelho/iConomy/existCheck.java
parente327aee283121e5f18134bdf237d7d7585879dd9 (diff)
downloadEssentials-9d961980e8745bad3a4a1cc4009cdd59de1647cc.tar
Essentials-9d961980e8745bad3a4a1cc4009cdd59de1647cc.tar.gz
Essentials-9d961980e8745bad3a4a1cc4009cdd59de1647cc.tar.lz
Essentials-9d961980e8745bad3a4a1cc4009cdd59de1647cc.tar.xz
Essentials-9d961980e8745bad3a4a1cc4009cdd59de1647cc.zip
FayConomy is now EssentialsiConomyBridge, done and ported, fully functional. Relies on EcoAPI!
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1316 e251c2fe-e539-e718-e476-b85c1f46cddb
Diffstat (limited to 'EssentialsiConomyBridge/src/com/nijiko/coelho/iConomy/existCheck.java')
-rw-r--r--EssentialsiConomyBridge/src/com/nijiko/coelho/iConomy/existCheck.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/EssentialsiConomyBridge/src/com/nijiko/coelho/iConomy/existCheck.java b/EssentialsiConomyBridge/src/com/nijiko/coelho/iConomy/existCheck.java
new file mode 100644
index 000000000..e0966fa3f
--- /dev/null
+++ b/EssentialsiConomyBridge/src/com/nijiko/coelho/iConomy/existCheck.java
@@ -0,0 +1,19 @@
+package com.nijiko.coelho.iConomy;
+
+import org.bukkit.Bukkit;
+
+public class existCheck {
+
+ //We have to make sure the user exists!
+
+ public static boolean exist(String name){
+ if (name==null){
+ System.out.println("Essentials iConpomy Bridge - Whatever plugin is calling for users that are null is BROKEN!");
+ return false;
+ }
+ if (Bukkit.getServer().getPlayer(name)!=null){
+ return true;
+ }
+ return false;
+ }
+} \ No newline at end of file