13
0

Enhance production readyness

Dieser Commit ist enthalten in:
Lixfel 2020-11-07 11:11:31 +01:00
Ursprung e23acca582
Commit f0f74f5848
5 geänderte Dateien mit 79 neuen und 5 gelöschten Zeilen

Datei anzeigen

@ -1,3 +1,22 @@
/*
This file is a part of the SteamWar software.
Copyright (C) 2020 SteamWar.de-Serverteam
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.steamwar.spectatesystem; package de.steamwar.spectatesystem;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;

Datei anzeigen

@ -1,3 +1,22 @@
/*
This file is a part of the SteamWar software.
Copyright (C) 2020 SteamWar.de-Serverteam
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.steamwar.spectatesystem; package de.steamwar.spectatesystem;
import com.comphenix.protocol.PacketType; import com.comphenix.protocol.PacketType;

Datei anzeigen

@ -1,3 +1,22 @@
/*
This file is a part of the SteamWar software.
Copyright (C) 2020 SteamWar.de-Serverteam
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.steamwar.spectatesystem.commands; package de.steamwar.spectatesystem.commands;
import de.steamwar.spectatesystem.FightfileConnection; import de.steamwar.spectatesystem.FightfileConnection;

Datei anzeigen

@ -102,16 +102,14 @@ public abstract class REntity {
public void sneak(boolean sneaking) { public void sneak(boolean sneaking) {
entity.setSneaking(sneaking); entity.setSneaking(sneaking);
DataWatcher dataWatcher = new DataWatcher(entity); /*DataWatcher dataWatcher = new DataWatcher(entity);
System.out.println("Let " + entity.getName() + " sneak " + sneaking); System.out.println("Let " + entity.getName() + " sneak " + sneaking);
DataWatcherObject<Byte> dwo = new DataWatcherObject<>(0, DataWatcherRegistry.a); dataWatcher.register(new DataWatcherObject<>(0, DataWatcherRegistry.a), sneaking ? (byte)0x02 : (byte)0x40);
dataWatcher.register(dwo, sneaking ? (byte)0x02 : (byte)0x40);
dataWatcher.markDirty(dwo);
PacketPlayOutEntityMetadata packet = new PacketPlayOutEntityMetadata(entity.getId(), dataWatcher, false); PacketPlayOutEntityMetadata packet = new PacketPlayOutEntityMetadata(entity.getId(), dataWatcher, false);
for(Player player : Bukkit.getOnlinePlayers()){ for(Player player : Bukkit.getOnlinePlayers()){
((CraftPlayer)player).getHandle().playerConnection.sendPacket(packet); ((CraftPlayer)player).getHandle().playerConnection.sendPacket(packet);
} }*/
} }
public void animation(byte animation) { public void animation(byte animation) {

Datei anzeigen

@ -1,3 +1,22 @@
/*
This file is a part of the SteamWar software.
Copyright (C) 2020 SteamWar.de-Serverteam
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.steamwar.spectatesystem.util; package de.steamwar.spectatesystem.util;
import com.sk89q.jnbt.NBTInputStream; import com.sk89q.jnbt.NBTInputStream;