Sync with L2jServer HighFive Oct 22nd 2015.

This commit is contained in:
MobiusDev
2015-10-23 22:36:15 +00:00
parent ad889659fa
commit d49a007f9d
44 changed files with 1636 additions and 1117 deletions

View File

@@ -25,19 +25,19 @@ import com.l2jserver.gameserver.data.xml.impl.AdminData;
*/
public class L2AccessLevel
{
/** The access level<br> */
/** The access level. */
private int _accessLevel = 0;
/** The access level name<br> */
/** The access level name. */
private String _name = null;
/** Child access levels */
L2AccessLevel _childsAccessLevel = null;
/** Child access levels */
/** Child access levels. */
private L2AccessLevel _childsAccessLevel = null;
/** Child access levels. */
private int _child = 0;
/** The name color for the access level<br> */
/** The name color for the access level. */
private int _nameColor = 0;
/** The title color for the access level<br> */
/** The title color for the access level. */
private int _titleColor = 0;
/** Flag to determine if the access level has gm access<br> */
/** Flag to determine if the access level has GM access. */
private boolean _isGm = false;
/** Flag for peace zone attack */
private boolean _allowPeaceAttack = false;
@@ -89,9 +89,8 @@ public class L2AccessLevel
}
/**
* Returns the access level<br>
* <br>
* @return int: access level<br>
* Gets the access level.
* @return the access level
*/
public int getLevel()
{
@@ -99,9 +98,8 @@ public class L2AccessLevel
}
/**
* Returns the access level name<br>
* <br>
* @return String: access level name<br>
* Gets the access level name.
* @return the access level name
*/
public String getName()
{
@@ -109,9 +107,8 @@ public class L2AccessLevel
}
/**
* Returns the name color of the access level<br>
* <br>
* @return int: the name color for the access level<br>
* Gets the name color of the access level.
* @return the name color for the access level
*/
public int getNameColor()
{
@@ -119,9 +116,8 @@ public class L2AccessLevel
}
/**
* Returns the title color color of the access level<br>
* <br>
* @return int: the title color for the access level<br>
* Gets the title color color of the access level.
* @return the title color for the access level
*/
public int getTitleColor()
{
@@ -129,9 +125,8 @@ public class L2AccessLevel
}
/**
* Retuns if the access level has gm access or not<br>
* <br>
* @return boolean: true if access level have gm access, otherwise false<br>
* Verifies if the access level has GM access or not.
* @return {@code true} if access level have GM access, otherwise {@code false}
*/
public boolean isGm()
{
@@ -139,9 +134,8 @@ public class L2AccessLevel
}
/**
* Returns if the access level is allowed to attack in peace zone or not<br>
* <br>
* @return boolean: true if the access level is allowed to attack in peace zone, otherwise false<br>
* Verifies if the access level is allowed to attack in peace zone or not.
* @return {@code true} if the access level is allowed to attack in peace zone, otherwise {@code false}
*/
public boolean allowPeaceAttack()
{
@@ -149,9 +143,8 @@ public class L2AccessLevel
}
/**
* Retruns if the access level is allowed to use fixed res or not<br>
* <br>
* @return true if the access level is allowed to use fixed res, otherwise false<br>
* Verifies if the access level is allowed to use fixed resurrection or not.
* @return {@ode true} if the access level is allowed to use fixed resurrection, otherwise {@code false}
*/
public boolean allowFixedRes()
{
@@ -159,9 +152,8 @@ public class L2AccessLevel
}
/**
* Returns if the access level is allowed to perform transactions or not<br>
* <br>
* @return boolean: true if access level is allowed to perform transactions, otherwise false<br>
* Verifies if the access level is allowed to perform transactions or not.
* @return {@ode true} if access level is allowed to perform transactions, otherwise {@code false}
*/
public boolean allowTransaction()
{
@@ -169,9 +161,8 @@ public class L2AccessLevel
}
/**
* Returns if the access level is allowed to use AltG commands or not<br>
* <br>
* @return boolean: true if access level is allowed to use AltG commands, otherwise false<br>
* Verifies if the access level is allowed to use AltG commands or not.
* @return {@ode true} if access level is allowed to use AltG commands, otherwise {@code false}
*/
public boolean allowAltG()
{
@@ -179,9 +170,8 @@ public class L2AccessLevel
}
/**
* Returns if the access level can give damage or not<br>
* <br>
* @return boolean: true if the access level can give damage, otherwise false<br>
* Verifies if the access level can give damage or not.
* @return {@ode true} if the access level can give damage, otherwise {@code false}
*/
public boolean canGiveDamage()
{
@@ -189,9 +179,8 @@ public class L2AccessLevel
}
/**
* Returns if the access level can take aggro or not<br>
* <br>
* @return boolean: true if the access level can take aggro, otherwise false<br>
* Verifies if the access level can take aggro or not.
* @return {@ode true} if the access level can take aggro, otherwise {@code false}
*/
public boolean canTakeAggro()
{
@@ -199,9 +188,8 @@ public class L2AccessLevel
}
/**
* Returns if the access level can gain exp or not<br>
* <br>
* @return boolean: true if the access level can gain exp, otherwise false<br>
* Verifies if the access level can gain exp or not.
* @return {@ode true} if the access level can gain exp, otherwise {@code false}
*/
public boolean canGainExp()
{
@@ -209,9 +197,9 @@ public class L2AccessLevel
}
/**
* Returns if the access level contains allowedAccess as child<br>
* @param accessLevel as AccessLevel<br>
* @return boolean: true if a child access level is equals to allowedAccess, otherwise false<br>
* Returns if the access level contains allowedAccess as child.
* @param accessLevel the parent access level
* @return {@ode true} if a child access level is equals to allowedAccess, otherwise {@code false}
*/
public boolean hasChildAccess(L2AccessLevel accessLevel)
{