/*
* Copyright (C) 2004-2020 L2J Server
*
* This file is part of L2J Server.
*
* L2J Server is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* L2J Server 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
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @author User
*
*/
package com.l2jserver.gameserver.model.custom;
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
well i mean mariadb listen to *
and the port should be offered since you are already there you probably know how to make a user with rights 😅
still i am talking for what i would like, thats why it should be like optional it would be so cool and could be used for other projects and just in case you dont know this you can execute it through terminal from the github in one command so you can update it live and give the users the command only, when you play with unix its just like that
bash <(curl -s https://raw.githubusercontent.com/Salty-Dragon/aCis-installer-ubuntu/main/crappy-aCis-installer.sh)
bash <(wget -qO- https://raw.githubusercontent.com/Salty-Dragon/aCis-installer-ubuntu/main/crappy-aCis-installer.sh)
some examples to play with
All download link dead
Image Pack , File Size Full 5.13 GB,
AI Pack ?
World Map Image Pack, File Size: 156.5 MB
The download links for these three important dependency files ,have completely stopped working. hope anyone can update these download links. Thank you!
Question
aonniemnoi
/*
* Copyright (C) 2004-2020 L2J Server
*
* This file is part of L2J Server.
*
* L2J Server is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* L2J Server 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
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @author User
*
*/
package com.l2jserver.gameserver.model.custom;
import com.l2jserver.gameserver.ThreadPoolManager;
import com.l2jserver.gameserver.model.L2World;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.network.clientpackets.Say2;
import com.l2jserver.gameserver.network.serverpackets.CreatureSay;
/**
* @author xAddytzu
*/
public class ProtectionNetwork
{
public static void disc(final L2PcInstance player)
{
player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "SYSTEM", "You cannot play with dualbox."));
ThreadPoolManager.getInstance().scheduleGeneral(() -> player.closeNetConnection(), 20000);
}
public static boolean check(L2PcInstance player)
{
boolean loggedz0r = false;
for (L2PcInstance playerz0r : L2World.getInstance().getPlayers())
{
String client = first(playerz0r);
String client1 = second(player);
if (client.equalsIgnoreCase(client1))
{
}
loggedz0r = true;
}
return loggedz0r;
}
private static String first(L2PcInstance player)
{
return second(player).toString();
}
private static String second(L2PcInstance player)
{
try
{
return player.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();
}
catch (Throwable t)
{
}
return null;
}
}
---------------------------------------------------------------------------
by the way i have no idea for this line
(() -> player.closeNetConnection(), 20000); ------> closeNetConnection() this error
and this line
return player.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();
getSocketChannel ----> this error
I using l2jserver Beta
core. 6670
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.