From 18e22965eca80166d3282ca5c78950e0fe7abd00 Mon Sep 17 00:00:00 2001 From: MELERIX <MELERIX@users.noreply.github.com> Date: Sat, 12 May 2012 04:55:52 +0000 Subject: [PATCH] BETA: Minor Update for AdminBan.java (-1 for ban, not -100). --- L2J_DataPack_BETA/build.xml | 8 ++++---- .../scripts/handlers/admincommandhandlers/AdminBan.java | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/L2J_DataPack_BETA/build.xml b/L2J_DataPack_BETA/build.xml index 45779c0719..278913a7ad 100644 --- a/L2J_DataPack_BETA/build.xml +++ b/L2J_DataPack_BETA/build.xml @@ -27,11 +27,11 @@ <property name="build.dist.game" location="${build.dist}/game" /> <property name="build.dist.login" location="${build.dist}/login" /> - <target name="init" depends="checkRequirements,getChangelogDateVersion" description="Create the output directories. Do nothing if dirs were already created"> + <target name="init" depends="checkRequirements,getChangelogDateVersion" description="Create the output directories."> <mkdir dir="${build}" /> </target> - <target name="dist" depends="init" description="Syncronizes build space contents with project."> + <target name="dist" depends="init" description="Export the files to the output directory."> <sync todir="${build.dist}" includeemptydirs="true"> <fileset dir="dist" /> </sync> @@ -43,7 +43,7 @@ <zip destfile="${build}/L2J_DataPack_BETA.zip" basedir="${build.dist}" level="9" update="true" /> </target> - <target name="checkRequirements" description="Check Requirements"> + <target name="checkRequirements" description="Check Requirements."> <fail message="Ant 1.8.2 is required. But your version is ${ant.version}"> <condition> <not> @@ -53,7 +53,7 @@ </fail> </target> - <target name="getChangelogDateVersion" description="Get Changelog, Date, Version"> + <target name="getChangelogDateVersion" description="Get Changelog, Date, Version."> <exec dir="." executable="svn" outputproperty="l2j.changelog"> <arg value="log" /> <arg value="--stop-on-copy" /> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/handlers/admincommandhandlers/AdminBan.java b/L2J_DataPack_BETA/dist/game/data/scripts/handlers/admincommandhandlers/AdminBan.java index 0ca28f8ffc..54b5b211e2 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/handlers/admincommandhandlers/AdminBan.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/handlers/admincommandhandlers/AdminBan.java @@ -31,8 +31,8 @@ import com.l2jserver.gameserver.util.GMAudit; /** * This class handles following admin commands: - * - ban_acc <account_name> = changes account access level to -100 and logs him off. If no account is specified target's account is used. - * - ban_char <char_name> = changes a characters access level to -100 and logs him off. If no character is specified target is used. + * - ban_acc <account_name> = changes account access level to -1 and logs him off. If no account is specified target's account is used. + * - ban_char <char_name> = changes a characters access level to -1 and logs him off. If no character is specified target is used. * - ban_chat <char_name> <duration> = chat bans a character for the specified duration. If no name is specified the target is chat banned indefinitely. * - unban_acc <account_name> = changes account access level to 0. * - unban_char <char_name> = changes specified characters access level to 0. @@ -116,7 +116,7 @@ public class AdminBan implements IAdminCommandHandler } else if (targetPlayer == null) { - LoginServerThread.getInstance().sendAccessLevel(player, -100); + LoginServerThread.getInstance().sendAccessLevel(player, -1); activeChar.sendMessage("Ban request sent for account "+player); auditAction(command, activeChar, player); } @@ -135,7 +135,7 @@ public class AdminBan implements IAdminCommandHandler return false; } auditAction(command, activeChar, (targetPlayer == null ? player : targetPlayer.getName())); - return changeCharAccessLevel(targetPlayer, player, activeChar, -100); + return changeCharAccessLevel(targetPlayer, player, activeChar, -1); } else if (command.startsWith("admin_ban_chat")) { -- GitLab