Permalink
Browse files

fixing an index out of bounds exception i missed

  • Loading branch information...
1 parent 223e04b commit a6138fa0fc1cae2e3eff56a0468efe2926197b18 @wwsean08 committed Feb 9, 2012
Showing with 1 addition and 1 deletion.
  1. BIN geo.jar
  2. +1 −1 src/com/wwsean08/locator/LocatorRunnable.java
View
BIN geo.jar
Binary file not shown.
@@ -24,7 +24,7 @@ public LocatorRunnable(String playerName, String senderName){
}
@Override
public void run() {
- if(Bukkit.getServer().matchPlayer(name) !=null){
+ if(Bukkit.getServer().matchPlayer(name).size() > 0){
final Player player = Bukkit.getServer().matchPlayer(name).get(0);
String request = lookup + player.getAddress().getAddress().getHostAddress();
try {

0 comments on commit a6138fa

Please sign in to comment.