Phoenix Anti-Cheat 1.2.1
- Tested Minecraft Versions:
- 1.7
- 1.8
- 1.9
- 1.10
- 1.11
![[IMG]](http://proxy.spigotmc.org/efc45c2644b98798c370bab57bd9e3e807fda819?url=http%3A%2F%2Fi.imgur.com%2F3MHY1k8.jpg)
![[IMG]](http://proxy.spigotmc.org/3b4d9b7bd4ba4a69d15cfcb5ac26fed3c14190e5?url=http%3A%2F%2Fi.imgur.com%2FCeUB9QO.jpg)
PAC is an anti-cheat system. This plugin is not improved/changed version of paid PAC. PAC 1.0.0 is completely re-coded. Now using different methods to detect hacks.
![[IMG]](http://proxy.spigotmc.org/30730f173882e099abfc0f21ad1e962574ee3ea8?url=http%3A%2F%2Fi.imgur.com%2Fy7R6BRA.jpg)
As I said, this plugin is completely re-coded and now you can use this plugin if your server version is 1.7 - 1.11. Also PAC supports protocol hack (1.7 - 1.8) and ViaVersion plugin. PAC is only compatible with spigot.
![[IMG]](http://proxy.spigotmc.org/cd9b82a33c32e1ef8fc6e42d5e20888847905906?url=http%3A%2F%2Fi.imgur.com%2FTPjYbcx.jpg)
PAC needs ProtocolLib plugin to edit/listen packets. You need to download correct version of ProtocolLib.
If you're running 1.8, 1.9, 1.10 or 1.11, use 4.2
If you're running 1.7, use 3.7.0
![[IMG]](http://proxy.spigotmc.org/1074b998a5179b7af77f45274495077012ff2b22?url=http%3A%2F%2Fi.imgur.com%2FOAnLDZk.jpg)
Current list of permissions
Phoenix.Command - You can use PAC commands if you have this permission
Phoenix.Notification - You can see notifications if you have this permission
Phoenix.Bypass.<module_name> - You can bypass this protection if you have this permission
Phoenix.Notification - You can see notifications if you have this permission
Phoenix.Bypass.<module_name> - You can bypass this protection if you have this permission
![[IMG]](http://proxy.spigotmc.org/16fc5edd2afd4ae97f75b279688baf5488fcd051?url=http%3A%2F%2Fi.imgur.com%2FMoEW0JD.jpg)
- KillAura
- KillAuraLegit
- Angle
- FastBow
- HeadRoll
- Blink
- DamageIndicators
- Spam
- Illegal Characters (ASCII)
- Massive Connections (Bot Attack)
![[IMG]](http://proxy.spigotmc.org/28ea606ef244e7e224f8b06f558424e6cd4e9bbb?url=http%3A%2F%2Fi.imgur.com%2FE2KFbjn.jpg)
PACAPI
Location > me.themuhammed2188.pac.api.PACAPI
Usage
Methods
PlayerViolationEvent
Location > me.themuhammed2188.pac.api.PlayerViolationEvent
Location > me.themuhammed2188.pac.api.PACAPI
Usage
Code (Text):
public static PACAPI api;
public void onEnable()
{
api = new PACAPI(this); // PACAPI(plugin)
}
public void onEnable()
{
api = new PACAPI(this); // PACAPI(plugin)
}
Methods
Code (Text):
void sendNotification(String hackName, Player player, String info, int vl)
int getPing(Player player)
void addCustomModule(PACModule module)
List<Plugin> getAddons()
List<PACModule> getCustomModules()
String getVersionPAC()
void setConfig(String path, Object value)
void saveConfig()
void reloadConfig()
int getPing(Player player)
void addCustomModule(PACModule module)
List<Plugin> getAddons()
List<PACModule> getCustomModules()
String getVersionPAC()
void setConfig(String path, Object value)
void saveConfig()
void reloadConfig()
PlayerViolationEvent
Location > me.themuhammed2188.pac.api.PlayerViolationEvent
Code (Text):
@EventHandler
public void onViolation(PlayerViolationEvent e)
{
Player player = e.getPlayer();
String hackType = e.getHackType();
int VL = e.getVL();
e.setCancelled(true);
}
public void onViolation(PlayerViolationEvent e)
{
Player player = e.getPlayer();
String hackType = e.getHackType();
int VL = e.getVL();
e.setCancelled(true);
}
1. Hook Method
2. Setting up VLManager
3. Creating PACModule
4. Using PACAPI & VLManager
5. Done
![[IMG]](//proxy.spigotmc.org/20348cde00a3717ae474ef157201819a6a8a57e3?url=http%3A%2F%2Fimage.prntscr.com%2Fimage%2Fd226462a2384495d9094de54ec2a37b5.png)
Code (Text):
public static PACAPI api;
public void onEnable()
{
api = new PACAPI(this); // PACAPI(plugin)
}
public void onEnable()
{
api = new PACAPI(this); // PACAPI(plugin)
}
2. Setting up VLManager
Code (Text):
public static VLManager vlMang = new VLManager();
public static PACAPI api;
public void onEnable()
{
Bukkit.getServer().getPluginManager().registerEvents(this, this); // to use events
api = new PACAPI(this);
for(Player pl : Bukkit.getOnlinePlayers())
{
vlMang.addPlayer(new VL(pl)); // Create VL information for players
}
}
@EventHandler
public void onJoin(PlayerJoinEvent e)
{
vlMang.addPlayer(new VL(e.getPlayer())); // Create VL information for players
}
public static PACAPI api;
public void onEnable()
{
Bukkit.getServer().getPluginManager().registerEvents(this, this); // to use events
api = new PACAPI(this);
for(Player pl : Bukkit.getOnlinePlayers())
{
vlMang.addPlayer(new VL(pl)); // Create VL information for players
}
}
@EventHandler
public void onJoin(PlayerJoinEvent e)
{
vlMang.addPlayer(new VL(e.getPlayer())); // Create VL information for players
}
3. Creating PACModule
Code (Text):
TestModule tModule = new TestModule("Speed h4x");
api.addCustomModule(tModule);
Bukkit.getServer().getPluginManager().registerEvents(tModule, this);
api.addCustomModule(tModule);
Bukkit.getServer().getPluginManager().registerEvents(tModule, this);
4. Using PACAPI & VLManager
Code (Text):
public class TestModule extends PACModule implements Listener{
public TestModule(String moduleName) {
super(moduleName);
}
@EventHandler
public void onMove(PlayerMoveEvent e)
{
Main.vlMang.getVL(e.getPlayer()).add("SPEED", 1);
// Add violation: 1
int VL = Main.vlMang.getVL(e.getPlayer()).getVL("SPEED");
Main.api.sendNotification("SPEED", e.getPlayer(), "information about hack", VL);
// Send notification
}
}
public TestModule(String moduleName) {
super(moduleName);
}
@EventHandler
public void onMove(PlayerMoveEvent e)
{
Main.vlMang.getVL(e.getPlayer()).add("SPEED", 1);
// Add violation: 1
int VL = Main.vlMang.getVL(e.getPlayer()).getVL("SPEED");
Main.api.sendNotification("SPEED", e.getPlayer(), "information about hack", VL);
// Send notification
}
}
5. Done
![[IMG]](http://proxy.spigotmc.org/20348cde00a3717ae474ef157201819a6a8a57e3?url=http%3A%2F%2Fimage.prntscr.com%2Fimage%2Fd226462a2384495d9094de54ec2a37b5.png)
![[IMG]](http://proxy.spigotmc.org/2981a78b580c7aee4520b3a3786eb00b67aa7ffb?url=http%3A%2F%2Fimage.prntscr.com%2Fimage%2Ffa3695db632a4a2283cf5420fddb67b8.png)
![[IMG]](http://proxy.spigotmc.org/d2498e838007b76a4e1c70025d55ae9523154f1e?url=http%3A%2F%2Fi.imgur.com%2FekG0t1u.jpg)