Dieser Commit ist enthalten in:
Ursprung
1ce944c875
Commit
4d21ebf382
@ -84,6 +84,10 @@ sourceSets {
|
|||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|
||||||
|
maven {
|
||||||
|
url = uri('https://hub.spigotmc.org/nexus/content/repositories/snapshots/')
|
||||||
|
}
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
url = uri('https://steamwar.de/maven/')
|
url = uri('https://steamwar.de/maven/')
|
||||||
credentials {
|
credentials {
|
||||||
@ -94,7 +98,9 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly swdep("Spigot-1.15")
|
compileOnly 'org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT'
|
||||||
|
|
||||||
|
compileOnly swdep("Spigot-1.19")
|
||||||
compileOnly swdep("WorldEdit-1.15")
|
compileOnly swdep("WorldEdit-1.15")
|
||||||
compileOnly swdep("SpigotCore")
|
compileOnly swdep("SpigotCore")
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ import lombok.Data;
|
|||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.craftbukkit.v1_15_R1.entity.CraftPlayer;
|
import org.bukkit.craftbukkit.v1_19_R1.entity.CraftPlayer;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@ -102,7 +102,8 @@ public class PortalCommand extends SWCommand {
|
|||||||
|
|
||||||
private Location locationOfPlayer(Player player) {
|
private Location locationOfPlayer(Player player) {
|
||||||
Location l = player.getLocation();
|
Location l = player.getLocation();
|
||||||
l.setYaw(((CraftPlayer)player).getHandle().getHeadRotation());
|
|
||||||
|
l.setYaw(((CraftPlayer)player).getHandle().cg());
|
||||||
return l;
|
return l;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,10 +19,10 @@
|
|||||||
|
|
||||||
package de.steamwar.lobby.map;
|
package de.steamwar.lobby.map;
|
||||||
|
|
||||||
import net.minecraft.server.v1_15_R1.WorldMap;
|
import net.minecraft.world.level.saveddata.maps.WorldMap;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.craftbukkit.v1_15_R1.map.CraftMapView;
|
import org.bukkit.craftbukkit.v1_19_R1.map.CraftMapView;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
import org.bukkit.inventory.meta.MapMeta;
|
import org.bukkit.inventory.meta.MapMeta;
|
||||||
@ -77,7 +77,7 @@ public class CustomMap {
|
|||||||
for (int sx = 0; sx < 128; sx++) {
|
for (int sx = 0; sx < 128; sx++) {
|
||||||
for (int sy = 0; sy < 128; sy++) {
|
for (int sy = 0; sy < 128; sy++) {
|
||||||
byte color = MapPalette.matchColor(new Color(subImage.getRGB(sx, sy)));
|
byte color = MapPalette.matchColor(new Color(subImage.getRGB(sx, sy)));
|
||||||
worldMap.colors[sx + sy * 128] = color;
|
worldMap.g[sx + sy * 128] = color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
craftMapView.setLocked(true);
|
craftMapView.setLocked(true);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren