Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 05:20:05 +01:00
[Bleeding] Fix generics. Addresses BUKKIT-844
Dieser Commit ist enthalten in:
Ursprung
257fd16242
Commit
403f874784
@ -106,6 +106,7 @@ import com.avaje.ebean.config.DataSourceConfig;
|
|||||||
import com.avaje.ebean.config.ServerConfig;
|
import com.avaje.ebean.config.ServerConfig;
|
||||||
import com.avaje.ebean.config.dbplatform.SQLitePlatform;
|
import com.avaje.ebean.config.dbplatform.SQLitePlatform;
|
||||||
import com.avaje.ebeaninternal.server.lib.sql.TransactionIsolation;
|
import com.avaje.ebeaninternal.server.lib.sql.TransactionIsolation;
|
||||||
|
import com.google.common.collect.ImmutableList;
|
||||||
import com.google.common.collect.MapMaker;
|
import com.google.common.collect.MapMaker;
|
||||||
|
|
||||||
import jline.ConsoleReader;
|
import jline.ConsoleReader;
|
||||||
@ -821,7 +822,6 @@ public final class CraftServer implements Server {
|
|||||||
FurnaceRecipes.getInstance().b = new FurnaceRecipes().b;
|
FurnaceRecipes.getInstance().b = new FurnaceRecipes().b;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public Map<String, String[]> getCommandAliases() {
|
public Map<String, String[]> getCommandAliases() {
|
||||||
ConfigurationSection section = configuration.getConfigurationSection("aliases");
|
ConfigurationSection section = configuration.getConfigurationSection("aliases");
|
||||||
Map<String, String[]> result = new LinkedHashMap<String, String[]>();
|
Map<String, String[]> result = new LinkedHashMap<String, String[]>();
|
||||||
@ -831,10 +831,9 @@ public final class CraftServer implements Server {
|
|||||||
List<String> commands = null;
|
List<String> commands = null;
|
||||||
|
|
||||||
if (section.isList(key)) {
|
if (section.isList(key)) {
|
||||||
commands = section.getList(key);
|
commands = section.getStringList(key);
|
||||||
} else {
|
} else {
|
||||||
commands = new ArrayList<String>();
|
commands = ImmutableList.<String>of(section.getString(key));
|
||||||
commands.add(section.getString(key));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
result.put(key, commands.toArray(new String[0]));
|
result.put(key, commands.toArray(new String[0]));
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren