Hi all, I'm trying to add the rebirth patch to the newest revision of l2j manually. The problem I have is that when I try to add this code in eclipse WorldHandler.java does not exist. Do I have to create a new java source file named Worldhandler.java ? If so how to I add it ? Thanks
Discord : utchiha_market
Telegram : https://t.me/utchiha_market
Auto Buy Store : https://utchiha-market.mysellauth.com/
Not sure if we’re legit? Check Our server — real reviews, real buyers
https://discord.gg/4EPpYhe2HA | https://campsite.bio/utchihaamkt
Quality in the Details
As Henry Ford said:
"Quality means doing it right even when no one is looking."
At Vibe SMS, we believe the same. Every number and every feature is designed to make your work easy and stress-free.
With us, it’s simple: grab a number, complete your task, and move forward.
Reliability, comfort, and attention to detail — that’s our vibe, helping you focus on what really matters.
Website link — https://vibe-sms.net/
Our Telegram channel — https://t.me/vibe_sms
sell adena
l2rebon signature x1 - 1kk = 1 dollars
l2reborn x10 - 500kk = 4 dollars
E-Global x Lu4 - 1kk = 2 dollars
BOHPTS - x20-x500 TOP PRICE
DISCORD - GODDARDSHOP
TELEGRAM - MMOPROMO
Also on sale are Epic jewelry, Clothes at a very good price
Question
Ethen
Hi all, I'm trying to add the rebirth patch to the newest revision of l2j manually. The problem I have is that when I try to add this code in eclipse WorldHandler.java does not exist. Do I have to create a new java source file named Worldhandler.java ? If so how to I add it ? Thanks
===================================================================
--- java/net/sf/l2j/gameserver/handler/WorldHandler.java (revision 0)
+++ java/net/sf/l2j/gameserver/handler/WorldHandler.java (revision 0)
-0,0 +1,38 @@
+package net.sf.l2j.gameserver.handler;
+
+import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
+
+import net.sf.l2j.gameserver.model.entity.RebirthManager;
+
+/**
+ *This will simply manage any custom 'Enter World callers' needed.<br>
+ *Rather then having to add them to the core's. (yuck!)
+ *
+ * @author JStar
+ */
+public class WorldHandler{
+
+ private static WorldHandler _instance = null;
+
+ private WorldHandler(){
+ //Do Nothing ^_-
+ }
+
+ /** Receives the non-static instance of the RebirthManager.*/
+ public static WorldHandler getInstance(){
+ if(_instance == null){
+ _instance = new WorldHandler();
+ }
+ return _instance;
+ }
+
+ /** Requests entry into the world - manages appropriately. */
+ public void enterWorld(L2PcInstance player){
+ RebirthManager.getInstance().grantRebirthSkills(player);
+ }
+
+ /** Requests removal from the world - manages appropriately. */
+ public void exitWorld(L2PcInstance player){
+ }
+
+}
2 answers to this question
Recommended Posts