mirror of
https://github.com/Ne0nx3r0/BetterAlias.git
synced 2024-11-27 12:46:12 +01:00
Removing unused file, apparently some tweaks to player listener...
This commit is contained in:
parent
d56674bda3
commit
fa3c011576
@ -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);
|
||||
}
|
||||
}
|
@ -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 = "";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user