i want to add a restriction for example when a player is near class master , cannot restart ( NO XMLS PLEASE)
public static void toKnownPlayersInRadius(L2NpcInstance Npc, int radius)
{
if (radius < 0)
radius = 150;
for (L2PcInstance player : Npc.getKnownList().getKnownPlayers().values())
{
if (Npc.isInsideRadius(player, radius, false, false))
player.sendMessage("You cannot restart near a class master.");
player.sendPacket(RestartResponse.valueOf(false));
}
}
DISCORD :
https://discord.com/users/325653525793210378
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/uthciha-services
https://campsite.bio/utchihaamkt
Question
Ayami-
i want to add a restriction for example when a player is near class master , cannot restart ( NO XMLS PLEASE)
2 answers to this question
Recommended Posts