Removing unused file, apparently some tweaks to player listener...

This commit is contained in:
Ne0n x3r0 2012-05-16 11:57:11 -05:00
parent d56674bda3
commit fa3c011576
2 changed files with 3 additions and 25 deletions

View File

@ -1,24 +0,0 @@
//TODO: remove if not implemented
package com.gmail.Ne0nx3r0;
import com.gmail.Ne0nx3r0.AliasManager.AliasManager;
import org.bukkit.command.CommandSender;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
class BetterAliasCommandListener implements Listener{
private final BetterAlias plugin;
private final AliasManager aliasManager;
BetterAliasCommandListener(BetterAlias p, AliasManager am) {
this.plugin = p;
this.aliasManager = am;
}
@EventHandler
public void onServerCommandEvent(CommandSender sender, String command){
System.out.println(sender);
System.out.println(command);
}
}

View File

@ -72,8 +72,10 @@ class BetterAliasPlayerListener implements Listener{
iParam = Integer.parseInt(text);
} catch(Exception ex){}
if(iParam > -1 && cmd.length >= iParam){
if(iParam > -1 && cmd.length-1 >= iParam){
text = cmd[iParam];
}else{
text = "";
}
}