28.12.2015, 12:50
Quote:
@Su37Erich: PlayerRequestSpawn is working fine for me. Your Pawn Gamemode / Filterscript might be making problems.
|
Quote:
package dev.acesamp; import net.gtaun.shoebill.resource.Gamemode; import net.gtaun.util.event.EventManager; import net.gtaun.util.event.EventManagerNode; public class Militar extends Test { @Override protected void onEnable() throws Throwable { EventManager eventManager = getEventManager(); EventManagerNode ev = eventManager.createChildNode(); ev.registerHandler(PlayerRequestSpawnEvent.class, (e) -> { e.disallow(); }); } @Override protected void onDisable() throws Throwable { } } |