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

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...