Ethanol Detector in progress
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -176,7 +176,7 @@ task obfuscate(type: JavaExec) {
|
||||
|
||||
// Arguments to pass to the obfuscator (e.g., input and output directories)
|
||||
args = [
|
||||
'--config', '.\\obf\\config.json'
|
||||
'--config', 'obf/config.json'
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"Settings": {
|
||||
"Input": "./build/libs/Sentinel-0.3.1.jar",
|
||||
"Output": "./build/libs/Sentinel-0.3.1-obf.jar",
|
||||
"Input": "/home/wolf/IdeaProjects/Sentinel/build/libs/Sentinel-1.0.0.jar",
|
||||
"Output": "./build/libs/Sentinel-1.0.0-alfa.jar",
|
||||
"Libraries": [
|
||||
"./deps"
|
||||
],
|
||||
|
||||
@@ -68,7 +68,7 @@ public class ShadowRealmEvents implements CustomListener, PacketListener {
|
||||
sendFakeRespawn(p);
|
||||
Bukkit.getScheduler().runTaskTimerAsynchronously(Sentinel.getInstance(),(t)->{
|
||||
if (p == null || !p.isOnline() || !Sentinel.getInstance().getDirector().io.extraStorage.shadowRealm.containsKey(p.getUniqueId())) t.cancel();
|
||||
sendFakePosition(p,0,666,0);
|
||||
sendFakePosition(p,0,32767,0);
|
||||
sendCloseScreen(p);
|
||||
},1,1);
|
||||
}
|
||||
@@ -88,11 +88,12 @@ public class ShadowRealmEvents implements CustomListener, PacketListener {
|
||||
player.sendPacket(packet);
|
||||
}
|
||||
|
||||
public static void sendFakePosition(Player victim, double x, double y, double z) {
|
||||
if (victim == null || !victim.isOnline()) return;
|
||||
public static boolean sendFakePosition(Player victim, double x, double y, double z) {
|
||||
if (victim == null || !victim.isOnline()) return false;
|
||||
var player = PacketEvents.getAPI().getPlayerManager().getUser(victim);
|
||||
if (player == null) return;
|
||||
if (player == null) return false;
|
||||
WrapperPlayServerPlayerPositionAndLook packet = new WrapperPlayServerPlayerPositionAndLook(x,y,z,0,90, RelativeFlag.NONE.getMask(),0,false);
|
||||
player.sendPacket(packet);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,37 @@
|
||||
package me.trouper.sentinel.server.events.violations.players;
|
||||
|
||||
public class EthanolPacket {
|
||||
|
||||
import com.github.retrooper.packetevents.event.PacketListener;
|
||||
import com.github.retrooper.packetevents.event.PacketReceiveEvent;
|
||||
import com.github.retrooper.packetevents.protocol.packettype.PacketType;
|
||||
import com.github.retrooper.packetevents.wrapper.play.client.WrapperPlayClientPluginMessage;
|
||||
import io.github.itzispyder.pdk.plugin.gui.CustomGui;
|
||||
import me.trouper.sentinel.server.events.violations.AbstractViolation;
|
||||
import org.bukkit.event.inventory.InventoryClickEvent;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
|
||||
public class EthanolPacket extends AbstractViolation implements PacketListener {
|
||||
|
||||
|
||||
@Override
|
||||
public void onPacketReceive(PacketReceiveEvent event) {
|
||||
if (!event.getPacketType().equals(PacketType.Play.Client.PLUGIN_MESSAGE)) return;
|
||||
WrapperPlayClientPluginMessage packet = new WrapperPlayClientPluginMessage(event);
|
||||
String channel = packet.getChannelName();
|
||||
if (channel.equals())
|
||||
}
|
||||
|
||||
@Override
|
||||
public CustomGui getConfigGui() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getMainPage(Inventory inv) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onClick(InventoryClickEvent e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user