Eai Galerinha essa é minha primeira postagem em java mods então não tenho tantos conhecimentos não em java,mais sempre que puder irei postar codigos legais ;D
Oque o codigo faz ?
Ele faz com que o Player após morto ele não consega falar.
Imagem com o mod funcionando.
### Eclipse Workspace Patch 1.0#P L2J_Server Index: java/com/l2jserver/gameserver/network/clientpackets/Say2.java =================================================================== --- java/com/l2jserver/gameserver/network/clientpackets/Say2.java (revision 143) +++ java/com/l2jserver/gameserver/network/clientpackets/Say2.java (working copy) @@ -190,6 +190,12 @@ } } + if (Config.CHAR_IS_DEAD && activeChar.isDead()) + { + activeChar.sendMessage("Morto nao fala haha"); + return; + } + if (activeChar.isInJail() && Config.JAIL_DISABLE_CHAT) { if (_type == TELL || _type == SHOUT || _type == TRADE || _type == HERO_VOICE) Index: dist/game/config/L2JTHEWAR/mensagens.properties =================================================================== --- dist/game/config/L2JTHEWAR/mensagens.properties (revision 143) +++ dist/game/config/L2JTHEWAR/mensagens.properties (working copy) @@ -83,4 +83,6 @@ # Announce when lord of the castle logges in AnnounceCastleLords = False # Announce Boss spawn in game -AnnounceRaidSpawn = False \ No newline at end of file +AnnounceRaidSpawn = False +# Restricion for Character Dead Protection by Radamantis +ChatDeadProtection = False Index: java/com/l2jserver/Config.java =================================================================== --- java/com/l2jserver/Config.java (revision 143) +++ java/com/l2jserver/Config.java (working copy) @@ -377,6 +377,7 @@ public static boolean ANNOUNCE_HERO_LOGIN; public static boolean ANNOUNCE_CASTLE_LORD; public static boolean ANNOUNCE_RAID_SPAWN; + public static boolean CHAR_IS_DEAD = false; /** OffTrade **/ public static boolean OFFLINE_TRADE_ENABLE; @@ -3531,6 +3532,7 @@ L2Properties mensagensSettings = new L2Properties(); is = new FileInputStream(new File(MENSGS_CONFIG_FILE)); mensagensSettings.load(is); + SHOW_DAMAGE_MESSAGE_ON_CENTER_TOP_SCREEN = Boolean.parseBoolean(mensagensSettings.getProperty("EnableAdvanceSystemMessage", "false")); SCREEN_POSITION = Integer.parseInt(mensagensSettings.getProperty("ScreenPositionMessage", "2")); CRITICAL_POSITION = Integer.parseInt(mensagensSettings.getProperty("CriticalPositionMessage", "2")); @@ -3560,6 +3562,7 @@ SP_TEXT = mensagensSettings.getProperty("SpTexto", "Welcome to our server"); ANNOUNCE_HERO_LOGIN = Boolean.parseBoolean(mensagensSettings.getProperty("AnnounceHeroLogin", "False")); ANNOUNCE_CASTLE_LORDS = Boolean.parseBoolean(mensagensSettings.getProperty("AnnounceCastleLords", "False")); + CHAR_IS_DEAD = Boolean.parseBoolean(mensagensSettings.getProperty("ChatDeadProtection", "False")); } catch (Exception e) {