1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-17 10:41:41 +01:00

ConsoleCommandSender no longer has a default constructor, use ConsoleCommandSender(server). Added entity.getServer and updated the version number of mc

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot 2011-02-23 11:32:19 +00:00
parent 78a0cd044b
commit 9cb3bad796
2 changed files with 5 additions and 1 deletions
paper-server/src/main/java/org/bukkit/craftbukkit

View file

@ -30,7 +30,7 @@ import org.bukkit.event.world.WorldEvent;
public final class CraftServer implements Server {
private final String serverName = "Craftbukkit";
private final String serverVersion;
private final String protocolVersion = "1.2_01";
private final String protocolVersion = "1.3";
private final PluginManager pluginManager = new SimplePluginManager(this);
private final BukkitScheduler scheduler = new CraftScheduler(this);
private final CommandMap commandMap = new SimpleCommandMap(this);

View file

@ -173,4 +173,8 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
public String toString() {
return "CraftEntity{" + "id=" + getEntityId() + '}';
}
public CraftServer getServer() {
return server;
}
}