Jump to content
  • 0

Question

Posted

hello guys, i have a little problem with eclipse, i want to disable this options one ip to can kill him self characters, i found the code.

 

Index: /Server/GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- /Server/GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 13)
+++ /Server/GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 15)
@@ -4410,4 +4410,11 @@

         // Check if it's pvp
+         String player1 = getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();
+         String player1target = targetPlayer.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();
+         if (player1.equals(player1target))
+            return;
       if (
             (

 

first i need find  // Check if it's pvp and put this code

+        String player1 = getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();

+        String player1target = targetPlayer.getClient().getConnection().getSocketChannel().socket().getInetAddress().getHostAddress();

+        if (player1.equals(player1target))

+            return;

      if (

after him right?

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..