mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-27 21:29:14 +01:00
MC 1.5.1
This commit is contained in:
parent
dd6b1d1a48
commit
a3231176bf
@ -11,7 +11,6 @@ import net.citizensnpcs.Settings.Setting;
|
|||||||
import net.citizensnpcs.api.CitizensAPI;
|
import net.citizensnpcs.api.CitizensAPI;
|
||||||
import net.citizensnpcs.api.CitizensPlugin;
|
import net.citizensnpcs.api.CitizensPlugin;
|
||||||
import net.citizensnpcs.api.ai.speech.SpeechFactory;
|
import net.citizensnpcs.api.ai.speech.SpeechFactory;
|
||||||
import net.citizensnpcs.api.command.Command;
|
|
||||||
import net.citizensnpcs.api.command.CommandContext;
|
import net.citizensnpcs.api.command.CommandContext;
|
||||||
import net.citizensnpcs.api.command.CommandManager;
|
import net.citizensnpcs.api.command.CommandManager;
|
||||||
import net.citizensnpcs.api.command.CommandManager.CommandInfo;
|
import net.citizensnpcs.api.command.CommandManager.CommandInfo;
|
||||||
@ -56,6 +55,16 @@ import net.citizensnpcs.util.StringHelper;
|
|||||||
import net.citizensnpcs.util.Util;
|
import net.citizensnpcs.util.Util;
|
||||||
import net.milkbowl.vault.economy.Economy;
|
import net.milkbowl.vault.economy.Economy;
|
||||||
|
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
|
import org.bukkit.ChatColor;
|
||||||
|
import org.bukkit.command.CommandSender;
|
||||||
|
import org.bukkit.plugin.Plugin;
|
||||||
|
import org.bukkit.plugin.RegisteredServiceProvider;
|
||||||
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
|
import com.google.common.collect.Iterables;
|
||||||
|
import com.google.common.collect.Maps;
|
||||||
|
|
||||||
public class Citizens extends JavaPlugin implements CitizensPlugin {
|
public class Citizens extends JavaPlugin implements CitizensPlugin {
|
||||||
private final CommandManager commands = new CommandManager();
|
private final CommandManager commands = new CommandManager();
|
||||||
private boolean compatible;
|
private boolean compatible;
|
||||||
@ -191,7 +200,7 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String cmdName, String[] args) {
|
public boolean onCommand(CommandSender sender, org.bukkit.command.Command command, String cmdName, String[] args) {
|
||||||
String modifier = args.length > 0 ? args[0] : "";
|
String modifier = args.length > 0 ? args[0] : "";
|
||||||
if (!commands.hasCommand(command, modifier) && !modifier.isEmpty()) {
|
if (!commands.hasCommand(command, modifier) && !modifier.isEmpty()) {
|
||||||
return suggestClosestModifier(sender, command.getName(), modifier);
|
return suggestClosestModifier(sender, command.getName(), modifier);
|
||||||
|
Loading…
Reference in New Issue
Block a user