Jump to content

Recommended Posts

Posted

Well this code is so simple to understand... with this code you can use admin commands through e-mails.

You must choose a password that will be the subject of the email; without this password if someone knows the commands and the e-mail you use as "receptor", he won't be able to use it. You can also specify an e-mail sender that will be used to send you back a feedback email with the players on-line, but it's not necessary, you can use it from any e-mail.

 

This feature should be only used if the admin is being, for example, on holidays, so remember to "Enabled = False" if you are at home, to feel safer.

I don't really know if this needs more explanation, but here you have and old video.

 

P.S: I know some guys can think that it's not so safe to enable this, OK I know it, I don't need replies 'bout that, if you don't feel safe using it, just don't even look at the topic.

 

 

 

 

 

Credits: Mhoska & Wyatt

Index: dist/game/config/MailController.properties
===================================================================
--- dist/game/config/MailController.properties	(revision 0)
+++ dist/game/config/MailController.properties	(revision 0)
@@ -0,0 +1,43 @@
+# -----------------------------------------------------------------------------------------------------------
+# 	MailController
+# 	Developed by Mhoska & Wyatt
+# -----------------------------------------------------------------------------------------------------------
+# 	This tool it's used to land admin commands via e-mail
+# -----------------------------------------------------------------------------------------------------------
+# 	Available commands			Information										Target Status
+# -----------------------------------------------------------------------------------------------------------
+# 	Restart 120					Restart Time										-
+# 	Shutdown 120				Shutdown Time										-
+# 	Kick Wyatt					Kick PlayerName										-
+# 	Ban_Char Wyatt				Ban_Char PlayerName									Both
+# 	Ban_Acc L2jHidden			Ban_Acc PlayerName									Both
+# 	Unban_Char Wyatt			Unban_Char PlayerName								-
+# 	Unban_Acc L2jHidden			Unban_Acc PlayerName								-
+# 	Jail Wyatt	60				Jail PlayerName	Time								Both
+# 	UnJail Wyatt				UnJail PlayerName									Both
+# 	Announce blablabla			Announce Text Text...								-
+# 	Repair Wyatt				Repair PlayerName								Must be Offline
+# 	GiveItem Wyatt 57 10		GiveItem PlayerName ItemId ItemCount			Must be Online
+# 	GiveItemAll 57 10			GiveItemAll ItemId ItemCount					Must be Online
+#	GetOnlineCount				(Gives you a feedback of online players)			-
+# -----------------------------------------------------------------------------------------------------------
+# 	Configs
+# 	Note: Recommended to se a new e-mail that will only be used for this script.
+# -----------------------------------------------------------------------------------------------------------	
+# Enable/Disable the system.
+Enabled = True				
+
+# Here you must especify your GMAIL e-mail.
+Email = 123456@gmail.com
+
+# Here you must especify your GMAIL e-mail password.
+EmailPassword = 123456
+
+# IMPORTANT: Here you must especify your personal password that you'll have to put as Subject
+# in every e-mail that you send.
+SystemPassword = DumbHoe
+
+# Here you must especify your personal e-mail that will get a feedback after some commands use.
+# Just to get the feedback, you can use commands no matter which email you use.
+EmailSender = 654321@gmail.com
Index: java/com/l2jserver/gameserver/model/email/Logger.java
===================================================================
--- java/com/l2jserver/gameserver/model/email/Logger.java	(revision 0)
+++ java/com/l2jserver/gameserver/model/email/Logger.java	(revision 0)
@@ -0,0 +1,118 @@
+/*
+ * This program 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.
+ * 
+ * This program 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/>.
+ */
+package com.l2jserver.gameserver.model.email;
+
+import java.io.*;
+import java.util.*;
+import javax.mail.*;
+import javax.mail.Flags.Flag;
+import javax.mail.search.AndTerm;
+import javax.mail.search.FlagTerm;
+import javax.mail.search.SearchTerm;
+import javax.mail.search.SubjectTerm;
+import com.sun.mail.imap.IMAPFolder;
+
+/**
+ * 
+ * @author Mhoska
+ * @rework Wyatt
+ * 
+ */
+
+public class Logger 
+{
+	public static String emailpass = "";
+	public static String email = "";
+	public static String pass = "";
+	public static String content = "";
+	public static String to = "";
+	public static boolean enabled = false;
+	
+    public static void main(String[] args) throws MessagingException, IOException 
+    {
+        IMAPFolder folder = null;
+        Store store = null;
+        @SuppressWarnings("unused")
+		String subject = null;
+        @SuppressWarnings("unused")
+		Flag flag = null;      
+        @SuppressWarnings("unused")
+		String nonsense = "restart";
+       
+        try 
+        {
+        	content = "";
+        	Properties props = System.getProperties();
+        	props.setProperty("mail.store.protocol", "imaps");
+        	Session session = Session.getDefaultInstance(props, null);
+        	store = session.getStore("imaps");
+          	store.connect("imap.googlemail.com", email, emailpass);
+          	folder = (IMAPFolder) store.getFolder("INBOX"); // This works for the whole inbox
+         
+          	if(!folder.isOpen())
+          	{
+          		folder.open(Folder.READ_WRITE);
+          	}
+          	Flags seen = new Flags(Flags.Flag.SEEN);
+          	FlagTerm unseenFlagTerm = new FlagTerm(seen, false);
+          	Flags recent = new Flags(Flags.Flag.RECENT);
+          	@SuppressWarnings("unused")
+          	FlagTerm recentFlagTerm = new FlagTerm(recent, true);       
+          	SearchTerm dumb = new SubjectTerm(pass); 
+          	SearchTerm searchTerm = new AndTerm(unseenFlagTerm, dumb);
+          	Message[] messages = folder.search(searchTerm);
+
+          	for (int i=0; i < messages.length;i++)   	  
+          	{
+        		 Message msg =  messages[i];
+        		 content = ""+msg.getContent();
+          	}
+        }
+        finally 
+        {
+        	if (folder != null && folder.isOpen()) 
+        	{
+        		folder.close(true); 
+        	}
+        	if (store != null) 
+        	{
+        		store.close(); 
+        	}
+        }
+        
+        if (!content.equals(""))
+        {
+        	Log.Load(content);
+        }
+    }
+    
+   public static void loadConfigs()
+	{
+		try
+		{
+			Properties prop = new Properties();
+			prop.load(new FileInputStream(new File("./config/MailController.properties")));
+			to = prop.getProperty("EmailSender", "123456@gmail.com");
+			emailpass = prop.getProperty("EmailPassword", "123456");
+			email = prop.getProperty("Email", "123456@gmail.com");
+			pass = prop.getProperty("SystemPassword", "DumbHoe");
+			enabled = Boolean.parseBoolean(prop.getProperty("Enabled", "True"));
+		}
+		catch(Exception e)
+		{
+			e.printStackTrace();
+		}
+	}	
+}
\ No newline at end of file
Index: java/com/l2jserver/gameserver/GameServer.java
===================================================================
--- java/com/l2jserver/gameserver/GameServer.java	(revision 5822)
+++ java/com/l2jserver/gameserver/GameServer.java	(working copy)
@@ -117,8 +117,10 @@
import com.l2jserver.gameserver.model.L2World;
import com.l2jserver.gameserver.model.PartyMatchRoomList;
import com.l2jserver.gameserver.model.PartyMatchWaitingList;
+import com.l2jserver.gameserver.model.email.Log;
import com.l2jserver.gameserver.model.entity.Hero;
import com.l2jserver.gameserver.model.entity.TvTManager;
@@ -306,11 +308,13 @@
		CursedWeaponsManager.getInstance();

		printSection("Scripts");
+		Log.getInstance();
		QuestManager.getInstance();
		TransformationManager.getInstance();
		BoatManager.getInstance();
Index: java/com/l2jserver/gameserver/model/email/Packet.java
===================================================================
--- java/com/l2jserver/gameserver/model/email/Packet.java	(revision 0)
+++ java/com/l2jserver/gameserver/model/email/Packet.java	(revision 0)
@@ -0,0 +1,69 @@
+/*
+ * This program 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.
+ * 
+ * This program 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/>.
+ */
+package com.l2jserver.gameserver.model.email;
+
+import java.util.Properties;
+import javax.mail.Address;
+import javax.mail.Message;
+import javax.mail.Session;
+import javax.mail.Transport;
+import javax.mail.internet.InternetAddress;
+import javax.mail.internet.MimeMessage;
+import com.l2jserver.gameserver.model.L2World;
+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
+
+/**
+ * 
+ * @author Wyatt
+ * 
+ */
+
+public class Packet
+{
+	   
+	public static void send()
+	{  
+		try
+		{
+			Properties props = new Properties();
+			props.put("mail.smtps.host", "smtp.gmail.com");
+			props.put("mail.smtps.auth", "true");
+			props.put("mail.transport.protocol", "smtp");
+			props.put("mail.debug", "false");
+			Session mailSession = Session.getDefaultInstance(props);
+			Transport transport = mailSession.getTransport("smtps");
+			InternetAddress fromAddress = new InternetAddress(Logger.email);
+			InternetAddress toAddress = new InternetAddress(Logger.to);
+			Message simpleMessage = new MimeMessage(mailSession);
+			simpleMessage.setFrom(fromAddress);
+			simpleMessage.setRecipient(Message.RecipientType.TO, toAddress);
+			simpleMessage.setSubject("Feedback Player Online Count Report");
+			String text = "Players Online("+L2World.getInstance().getAllPlayersCount()+"):";
+			
+			for (L2PcInstance onlinePlayer : L2World.getInstance().getAllPlayers().values(new L2PcInstance[0]))
+			{
+				text = text+" "+onlinePlayer.getName()+",";
+			}
+			simpleMessage.setText(text);
+			transport.connect("smtp.gmail.com", Logger.email, Logger.emailpass);
+			transport.sendMessage(simpleMessage, new Address[] { toAddress });
+			transport.close();
+		}
+		catch (Exception e)
+		{
+			e.printStackTrace();
+		}
+	}
+}
\ No newline at end of file
Index: java/com/l2jserver/gameserver/model/email/Log.java
===================================================================
--- java/com/l2jserver/gameserver/model/email/Log.java	(revision 0)
+++ java/com/l2jserver/gameserver/model/email/Log.java	(revision 0)
@@ -0,0 +1,483 @@
+/*
+ * This program 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.
+ * 
+ * This program 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/>.
+ */
+package com.l2jserver.gameserver.model.email;
+
+import java.io.IOException;
+import java.sql.Connection;
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.StringTokenizer;
+import java.util.concurrent.ScheduledFuture;
+import javax.mail.MessagingException;
+import com.l2jserver.L2DatabaseFactory;
+import com.l2jserver.gameserver.Announcements;
+import com.l2jserver.gameserver.LoginServerThread;
+import com.l2jserver.gameserver.ThreadPoolManager;
+import com.l2jserver.gameserver.communitybbs.Manager.RegionBBSManager;
+import com.l2jserver.gameserver.datatables.ItemTable;
+import com.l2jserver.gameserver.Shutdown;
+import com.l2jserver.gameserver.model.L2World;
+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jserver.gameserver.model.items.L2Item;
+
+/**
+ * 
+ * @author Wyatt
+ * 
+ */
+
+public class Log 
+{
+	private static int time = 0;
+	private static String player = "";
+	private static String text = "";
+	private static L2PcInstance plyr = null;
+	private static L2PcInstance targetPlayer = null;
+	private static int itemid = 0;
+	private static int itemcount = 0;
+	private static ScheduledFuture<?> checkemail = null;
+	
+	public Log()
+	{
+		Logger.loadConfigs();
+		
+		if(Logger.enabled)
+		{
+			checkemail = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new LogController(),/* 5 * 60000*/60000, /*5 * 60000*/60000);// Test 1 minute, live +-5 minutes
+		}	
+	}
+	
+	private static void cancelTask()
+	{
+		if(checkemail != null)
+		{
+			checkemail.cancel(false);
+			checkemail = null;
+		}
+	}
+	
+	private static void intialize()
+	{
+		time = 0;
+		player = "";
+		text = "";
+		plyr = null;
+		targetPlayer = null;
+		itemid = 0;
+		itemcount = 0;
+	}
+	
+	public static void Load(String command)
+	{
+		intialize();
+		
+		if(command.toLowerCase().startsWith("restart"))
+		{
+			StringTokenizer st = new StringTokenizer(command);
+			
+			if (st.hasMoreTokens())
+			{
+				st.nextToken();
+				time = Integer.parseInt(st.nextToken());
+				
+				if (time <= 0)
+				{
+					return;
+				}
+			}
+			else
+			{
+				return;
+			}
+			cancelTask();	
+			Shutdown.getInstance().startShutdown(null, time, true);
+		}
+		else if(command.toLowerCase().startsWith("shutdown"))
+		{
+			StringTokenizer st = new StringTokenizer(command);
+			
+			if (st.hasMoreTokens())
+			{
+				st.nextToken();
+				time = Integer.parseInt(st.nextToken());
+				
+				if (time <= 0)
+				{
+					return;
+				}
+			}
+			else
+			{
+				return;
+			}
+			cancelTask();	
+			Shutdown.getInstance().startShutdown(null, time, false);
+		}
+		else if (command.toLowerCase().startsWith("kick"))
+		{
+			StringTokenizer st = new StringTokenizer(command);
+			
+			if (st.countTokens() > 1)
+			{
+				st.nextToken();
+				player = st.nextToken();
+				plyr = L2World.getInstance().getPlayer(player);
+				
+				if (plyr != null)
+				{
+					plyr.logout();
+				}
+			}
+		}
+		else if (command.toLowerCase().startsWith("ban_char"))
+		{
+			StringTokenizer st = new StringTokenizer(command);
+			st.nextToken();
+			
+			if (st.hasMoreTokens())
+			{
+				player = st.nextToken();
+				targetPlayer = L2World.getInstance().getPlayer(player);
+			}
+			changeCharAccessLevel(targetPlayer, player, -100);
+		}
+		else if (command.toLowerCase().startsWith("ban_acc"))
+		{	
+			StringTokenizer st = new StringTokenizer(command);
+			st.nextToken();
+			
+			if (st.hasMoreTokens())
+			{
+				player = st.nextToken();
+				targetPlayer = L2World.getInstance().getPlayer(player);
+			}
+			
+			if (targetPlayer != null)
+			{
+				targetPlayer.setPunishLevel(L2PcInstance.PunishLevel.ACC, 0);
+				targetPlayer.logout();
+			}
+			else
+			{
+				LoginServerThread.getInstance().sendAccessLevel(player, -100);
+			}
+		}
+		else if (command.toLowerCase().startsWith("unban_char"))
+		{
+			StringTokenizer st = new StringTokenizer(command);
+			st.nextToken();
+			
+			if (st.hasMoreTokens())
+			{
+				player = st.nextToken();
+				targetPlayer = L2World.getInstance().getPlayer(player);
+			}
+			
+			if (targetPlayer == null)
+			{
+				LoginServerThread.getInstance().sendAccessLevel(player, 0);
+				changeCharAccessLevel(null, player, 0);
+			}
+		}
+		else if (command.toLowerCase().startsWith("unban_acc"))
+		{
+			StringTokenizer st = new StringTokenizer(command);
+			st.nextToken();
+			
+			if (st.hasMoreTokens())
+			{
+				player = st.nextToken();
+				targetPlayer = L2World.getInstance().getPlayer(player);
+			}
+			
+			if (targetPlayer == null)
+			{
+				LoginServerThread.getInstance().sendAccessLevel(player, 0);
+			}
+		}
+		else if (command.toLowerCase().startsWith("jail"))
+		{
+			StringTokenizer st = new StringTokenizer(command);
+			st.nextToken();
+			
+			if (st.hasMoreTokens())
+			{
+				player = st.nextToken();
+				targetPlayer = L2World.getInstance().getPlayer(player);
+				
+				if (st.hasMoreTokens())
+				{
+					try
+					{
+						time = Integer.parseInt(st.nextToken());
+					}
+					catch (NumberFormatException nfe)
+					{
+						nfe.printStackTrace();
+					}
+				}
+			}
+			
+			if (targetPlayer != null)
+			{
+				if (targetPlayer.isFlyingMounted())
+				{
+					targetPlayer.untransform();
+				}
+				targetPlayer.setPunishLevel(L2PcInstance.PunishLevel.JAIL, time);
+			}
+			else
+			{
+				jailOfflinePlayer(player, time);
+			}
+		}
+		else if (command.toLowerCase().startsWith("getonlinecount"))
+		{
+			Packet.send();
+		}
+		else if (command.toLowerCase().startsWith("unjail"))
+		{
+			StringTokenizer st = new StringTokenizer(command);
+			st.nextToken();
+			
+			if (st.hasMoreTokens())
+			{
+				player = st.nextToken();
+				targetPlayer = L2World.getInstance().getPlayer(player);
+			}
+
+			if (targetPlayer != null)
+			{
+				targetPlayer.setPunishLevel(L2PcInstance.PunishLevel.NONE, 0);
+			}
+			else
+			{
+				unjailOfflinePlayer(player);
+			}
+		}
+		else if (command.toLowerCase().startsWith("announce"))
+		{
+			StringTokenizer st = new StringTokenizer(command);
+			st.nextToken();
+			
+			while (st.hasMoreTokens())
+			{
+				text = text+" "+st.nextToken();
+			}
+			Announcements.getInstance().announceToAll(text, false);	
+		}
+		else if (command.toLowerCase().startsWith("giveitemall"))
+		{	
+			StringTokenizer st = new StringTokenizer(command);
+			st.nextToken();
+			
+			if (st.hasMoreTokens())
+			{
+				itemid = Integer.parseInt(st.nextToken());
+				itemcount = Integer.parseInt(st.nextToken());	
+			}
+			L2Item template = ItemTable.getInstance().getTemplate(itemid);
+			
+			for (L2PcInstance onlinePlayer : L2World.getInstance().getAllPlayers().values(new L2PcInstance[0]))
+			{
+					onlinePlayer.addItem("Admin Reward", itemid, itemcount, onlinePlayer, true);
+					
+					if (template != null)
+					{
+						onlinePlayer.sendMessage("Admin rewarded you with "+itemcount+" "+template.getName()+" in your inventory.");
+					}
+			}
+			Announcements.getInstance().announceToAll("Admin rewarded all online players, check your inventory.", false);	
+		}
+		else if (command.toLowerCase().startsWith("giveitem"))
+		{
+			StringTokenizer st = new StringTokenizer(command);
+			st.nextToken();
+			
+			if (st.hasMoreTokens())
+			{
+				player = st.nextToken();
+				targetPlayer = L2World.getInstance().getPlayer(player);
+			}
+			
+			if (targetPlayer != null)
+			{
+				itemid = Integer.parseInt(st.nextToken());
+				itemcount = Integer.parseInt(st.nextToken());
+				targetPlayer.addItem("Admin Reward", itemid, itemcount, targetPlayer, true);
+				targetPlayer.sendMessage("Admin rewarded you, check your inventory.");
+			}	
+		}	
+		else if (command.toLowerCase().startsWith("repair"))
+		{
+			StringTokenizer st = new StringTokenizer(command);
+			st.nextToken();
+			
+			if (st.hasMoreTokens())
+			{
+				handleRepair(st.nextToken());
+			}
+		}
+	}
+	
+	private static void changeCharAccessLevel(L2PcInstance targetPlayer, String player, int lvl)
+	{
+		if (targetPlayer != null)
+		{
+			targetPlayer.setAccessLevel(lvl);
+			targetPlayer.sendMessage("Your character has been banned. Goodbye.");
+			targetPlayer.logout();
+			RegionBBSManager.getInstance().changeCommunityBoard();
+		}
+		else
+		{
+			try
+			{
+				Connection con = L2DatabaseFactory.getInstance().getConnection();
+				PreparedStatement statement = con.prepareStatement("UPDATE characters SET accesslevel=? WHERE char_name=?");
+				statement.setInt(1, lvl);
+				statement.setString(2, player);
+				statement.execute();
+				statement.close();
+				con.close();
+			}
+			catch (SQLException se)
+			{
+				se.printStackTrace();
+			}
+		}
+		return;
+	}
+	
+	private static void jailOfflinePlayer(String name, int delay)
+	{
+		try
+		{
+			Connection con = L2DatabaseFactory.getInstance().getConnection();
+			PreparedStatement statement = con.prepareStatement("UPDATE characters SET x=?, y=?, z=?, punish_level=?, punish_timer=? WHERE char_name=?");
+			statement.setInt(1, -114356);
+			statement.setInt(2, -249645);
+			statement.setInt(3, -2984);
+			statement.setInt(4, L2PcInstance.PunishLevel.JAIL.value());
+			statement.setLong(5, (delay > 0 ? delay * 60000L : 0));
+			statement.setString(6, name);
+			statement.execute();
+			statement.close();
+			con.close();
+		}
+		catch (SQLException se)
+		{
+			se.printStackTrace();
+		}
+	}
+	
+	private static void unjailOfflinePlayer(String name)
+	{
+		try
+		{
+			Connection con = L2DatabaseFactory.getInstance().getConnection();
+			PreparedStatement statement = con.prepareStatement("UPDATE characters SET x=?, y=?, z=?, punish_level=?, punish_timer=? WHERE char_name=?");
+			statement.setInt(1, 17836);
+			statement.setInt(2, 170178);
+			statement.setInt(3, -3507);
+			statement.setInt(4, 0);
+			statement.setLong(5, 0);
+			statement.setString(6, name);
+			statement.execute();
+			statement.close();	
+			con.close();
+		}	
+		catch (SQLException se)
+		{
+			se.printStackTrace();
+		}
+	}
+	
+	private static void handleRepair(String charname)
+	{
+
+		String cmd = "UPDATE characters SET x=-84318, y=244579, z=-3730 WHERE char_name=?";
+		
+		try
+		{
+			Connection connection = L2DatabaseFactory.getInstance().getConnection();
+			PreparedStatement statement = connection.prepareStatement(cmd);
+			statement.setString(1, charname);
+			statement.execute();
+			statement.close();	
+			statement = connection.prepareStatement("SELECT charId FROM characters where char_name=?");
+			statement.setString(1, charname);
+			ResultSet rset = statement.executeQuery();
+			int objId = 0;
+			
+			if (rset.next())
+			{
+				objId = rset.getInt(1);
+			}	
+			rset.close();
+			statement.close();
+			
+			if (objId == 0)
+			{
+				connection.close();
+				return;
+			}
+			statement = connection.prepareStatement("DELETE FROM character_shortcuts WHERE charId=?");
+			statement.setInt(1, objId);
+			statement.execute();
+			statement.close();	
+			statement = connection.prepareStatement("UPDATE items SET loc=\"INVENTORY\" WHERE owner_id=?");
+			statement.setInt(1, objId);
+			statement.execute();
+			statement.close();
+			connection.close();
+		}
+		catch (Exception e)
+		{
+			e.printStackTrace();
+		}
+	}
+	
+	public class LogController implements Runnable
+	{ 
+		@Override
+		public void run()
+		{ 
+			try 
+			{
+				Logger.main(null);
+			} 
+			catch (MessagingException e) 
+			{	
+				e.printStackTrace();
+			} 
+			catch (IOException e)
+			{
+				e.printStackTrace();
+			}
+		}
+	 }
+	 
+	 public static Log getInstance()
+	 {
+		 return SingletonHolder._instance;
+	 }
+	 
+	 public static class SingletonHolder
+	 {
+		 protected static final Log _instance = new Log();
+	 }
+}
\ No newline at end of file

  • Upvote 1
Posted

Rewarded, really made my day. Gj mate.

Ty dude.

 

Wyatt, you fill my eyes with tears.

I hope these tears are tears of happiness and not tears of sadness  :' (    : D

Posted

Nice one wyatt,keep up.

Damn man! this is hot! Thanks dude

Awesome share Wyatt :) Thank you :)

Thx, thx :D

 

Now i can control my server from holydays.

//ban_acc wyatt xD

Ban your account -.-

 

If someone wants to use it and has any idea/problem feel free to tell me.

  • 1 month later...
Posted (edited)

seen *

I don't think that you're in a position to correct other members when it comes to english as you have errors aswell. 

 

Ontopic: Good job, keep sharing.

Edited by MikeJ
Posted

I don't think that you're in a position to correct other members when it comes to english as you have errors aswell. 

 

Ontopic: Good job, keep sharing.

 

I make typos cause I type fast, but when it comes to such english my eyes get cancer.

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
Reply to this topic...

×   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.



  • Posts

    • Продам комплекты (Custom Colour) Apella Сеты. Контакт со мной/Contact with me  Telegram. Custom Colour Apella Light YouTube Video
    • haha, I don't say it, chatgpt says it. discuss it with him if you have problems 😉 or sue chatgpt for lying, for example when he tells you that you are an idiot and tells you that I do things that are light years ahead of you.
    • hey i make enough to live comfortably you, on the other hand... doubt that'd be the case if you were as competent as you claim to be
    • all your doubts ask chatgpt, also ask what you could do yourself hahaha
    • This post originally appeared on MmoGah. Odin: Valhalla Rising is an ambitious open-world MMORPG developed with Unreal Engine 4, offering breathtaking visuals and immersive gameplay. I will share everything you need to know before starting it.     Re-rolling In Odin, re-rolling isn't a practical strategy. Unlike most gacha games, where it's common to reset for better initial pulls, Odin focuses heavily on long-term growth. The earlier you begin playing and developing your character, the more advantages you'll gain over time. Instead of spending your efforts on re-rolling for ideal equipment, it's better to dive in and start progressing right away.   Server Selection Before starting your character, selecting a server is a crucial step. Since Odin doesn't support cross-server gameplay, coordinating with your friends, family, or guildmates is essential to ensure everyone creates their characters on the same server. Take the time to plan with your group beforehand. After deciding on a server, your next major choice will be picking a class.   Class Breakdown Odin features four primary starting classes: Warrior, Sorceress, Rogue, and Priest. Each class comes with its own distinct playstyle and unique strengths, so choose wisely, as your selection is permanent. However, even free-to-play players can create up to three characters on one server, giving you the flexibility to try different options and find the one that matches your preferences.   Quest and Leveling Once your character is created, your initial objective is to work through the main questline. This acts as both a tutorial and a method for early leveling. Odin simplifies the process with a convenient quest button that handles navigation, starts dialogues, and even enables auto-combat. This user-friendly feature allows beginners to grasp the basics of the game without feeling overloaded.   Auto Combat and No Kill-steal Mode Auto combat is an essential feature in Odin, enabling your character to battle monsters autonomously. This system allows you to effortlessly gain experience and loot, even while you're busy studying, cooking, or unwinding. To optimize its use, activate the no-kill-steal mode. This setting prevents your character from targeting monsters already engaged by other players, helping you avoid conflicts or potential PvP situations. However, if a quest becomes difficult to complete due to overcrowded areas, you can temporarily disable this mode to overcome the obstacle and move forward.   Item Management and Potions Don't overlook the importance of consumable items, especially health potions. These can be purchased, along with buffs, from general merchants in villages, and they play a crucial role in improving your combat efficiency and ensuring your survival. Always aim to keep a full stock of HP potions and carry buffs that boost attack, defense, or regeneration in batches of 5-10 for convenience.   Once you've acquired your consumables, assign them to your quick slots located at the bottom center of the screen. Swiping down activates these slots, and items like potions will automatically be used when necessary, so you don't need to worry about them mid-battle. Keep a close eye on your potion reserves, as running out during a tough fight could leave you vulnerable before reaching a safe area. In the early stages of the game, it's better to return to town for a restock if supplies are low rather than risking unnecessary defeats. You can also enable notifications to alert you when your health or potion count drops too low—a handy feature for staying prepared if your attention is elsewhere.   Leveling and AFK Farming Once you've mastered the fundamentals, the next step is to focus on leveling up and enhancing your character. Gaining levels is your primary source of progression early on, as it not only improves your stats but also unlocks crucial game features and new abilities. At this stage, simply sticking to the main questline provides a reliable and efficient way to gain experience.   Additionally, Odin includes a highly convenient idle feature called AFK mode. This allows your character to keep farming for resources and experience even when the game is closed, with a maximum duration of 8 hours per day. It's an excellent option for making progress while you're asleep, commuting, or otherwise occupied.   Gear Upgrades When the time comes to improve your gear, the initial focus should be on upgrading from normal-grade equipment to high-grade items. These provide significantly better stats and can be enhanced further to increase their effectiveness. Enhancing requires enhancement stones and gold, but it's important to stay within the safe enhancement limit. Attempting upgrades beyond this limit carries the risk of destroying your gear if the enhancement fails. Stick to safe enhancements until you've gained more experience and accumulated spare equipment to mitigate potential losses.   Skill Purchases When you've accumulated enough gold, it's time to invest in skills. These are crucial for enhancing your combat abilities and provide key benefits tailored to your class, whether it's increasing damage output, improving healing capabilities, or adding valuable utility. Before purchasing, ensure your character meets the level prerequisites for each skill. Your ultimate goal will be progressing through and completing the main questline in Midgard as you continue to develop your character.   Unlocking Jotenheim Finishing this milestone grants you access to the next region, Jetunheim, unlocking a variety of new content and challenges. This marks your first significant achievement in the game and is an essential early objective to strive for as you progress.   Joining a Guild Joining a guild is a highly beneficial step in Odin. Guilds not only provide opportunities for social interaction and group activities but also offer passive bonuses that can significantly enhance your gameplay. Even if you're not particularly active socially, being part of any guild is advantageous. The guild feature becomes accessible after completing Chapter 4, Quest 19 of the main story.   Guilds provide various perks, including buffs that scale with the guild's level. Additionally, you can earn guild coins by contributing through donations, quest completions, or regular logins. These coins can be exchanged for valuable rewards, such as epic-grade armor. The more you actively contribute to your guild, the greater the overall benefits for both you and the guild itself. Joining early and staying involved will undoubtedly strengthen your progression in the game.   Conclusion Here is the end of this beginners' guide. I hope these tips will help you level fast in Odin.
  • Topics

×
×
  • Create New...