diff --git a/src/main/java/com/l2jserver/game/net/packet/client/CharacterChatMessagePacket.java b/src/main/java/com/l2jserver/game/net/packet/client/CharacterChatMessagePacket.java index 5093e053f..d83269bcf 100644 --- a/src/main/java/com/l2jserver/game/net/packet/client/CharacterChatMessagePacket.java +++ b/src/main/java/com/l2jserver/game/net/packet/client/CharacterChatMessagePacket.java @@ -20,12 +20,14 @@ import org.jboss.netty.buffer.ChannelBuffer; import com.google.inject.Inject; import com.l2jserver.game.net.Lineage2Connection; +import com.l2jserver.game.net.SystemMessage; import com.l2jserver.game.net.packet.AbstractClientPacket; import com.l2jserver.game.net.packet.server.ActionFailedPacket; import com.l2jserver.service.game.chat.CannotChatToSelfChatServiceException; import com.l2jserver.service.game.chat.ChatBanActiveChatServiceException; import com.l2jserver.service.game.chat.ChatMessageDestination; import com.l2jserver.service.game.chat.ChatService; +import com.l2jserver.service.game.chat.ChatTargetOfflineServiceException; import com.l2jserver.service.game.chat.TargetNotFoundChatServiceException; import com.l2jserver.util.BufferUtils; @@ -75,16 +77,16 @@ public class CharacterChatMessagePacket extends AbstractClientPacket { } try { - chatService.send(conn.getCharacterID(), destination, message, target); + chatService.send(conn.getCharacterID(), destination, message, + target); } catch (TargetNotFoundChatServiceException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + conn.sendSystemMessage(SystemMessage.TARGET_CANT_FOUND); } catch (CannotChatToSelfChatServiceException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + conn.sendSystemMessage(SystemMessage.CANNOT_USE_ON_YOURSELF); } catch (ChatBanActiveChatServiceException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + conn.sendSystemMessage(SystemMessage.CHATTING_IS_CURRENTLY_PROHIBITED); + } catch (ChatTargetOfflineServiceException e) { + conn.sendSystemMessage(SystemMessage.S1_IS_NOT_ONLINE, target); } } diff --git a/src/main/java/com/l2jserver/service/admin/AdministratorServiceImpl.java b/src/main/java/com/l2jserver/service/admin/AdministratorServiceImpl.java index a3e916976..74b77a8b4 100644 --- a/src/main/java/com/l2jserver/service/admin/AdministratorServiceImpl.java +++ b/src/main/java/com/l2jserver/service/admin/AdministratorServiceImpl.java @@ -16,6 +16,8 @@ */ package com.l2jserver.service.admin; +import java.util.List; + import com.l2jserver.model.world.L2Character; import com.l2jserver.service.AbstractService; @@ -25,6 +27,8 @@ import com.l2jserver.service.AbstractService; */ public class AdministratorServiceImpl extends AbstractService implements AdministratorService { + private List online; + @Override public void command(L2Character character, String command, String... args) { if(command.equals("log")) { diff --git a/src/main/java/com/l2jserver/service/game/character/ActorIsNotAttackableServiceException.java b/src/main/java/com/l2jserver/service/game/character/ActorIsNotAttackableServiceException.java index 6a670e86b..37dc64d78 100644 --- a/src/main/java/com/l2jserver/service/game/character/ActorIsNotAttackableServiceException.java +++ b/src/main/java/com/l2jserver/service/game/character/ActorIsNotAttackableServiceException.java @@ -1,3 +1,19 @@ +/* + * This file is part of l2jserver . + * + * l2jserver 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. + * + * l2jserver 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 l2jserver. If not, see . + */ package com.l2jserver.service.game.character; import com.l2jserver.model.world.capability.Actor; diff --git a/src/main/java/com/l2jserver/service/game/character/CannotSetTargetServiceException.java b/src/main/java/com/l2jserver/service/game/character/CannotSetTargetServiceException.java index ddc48cd4a..13a8b3f63 100644 --- a/src/main/java/com/l2jserver/service/game/character/CannotSetTargetServiceException.java +++ b/src/main/java/com/l2jserver/service/game/character/CannotSetTargetServiceException.java @@ -1,3 +1,19 @@ +/* + * This file is part of l2jserver . + * + * l2jserver 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. + * + * l2jserver 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 l2jserver. If not, see . + */ package com.l2jserver.service.game.character; /** diff --git a/src/main/java/com/l2jserver/service/game/character/CharacterAlreadyRunningServiceException.java b/src/main/java/com/l2jserver/service/game/character/CharacterAlreadyRunningServiceException.java index 488941761..60daa2014 100644 --- a/src/main/java/com/l2jserver/service/game/character/CharacterAlreadyRunningServiceException.java +++ b/src/main/java/com/l2jserver/service/game/character/CharacterAlreadyRunningServiceException.java @@ -1,3 +1,19 @@ +/* + * This file is part of l2jserver . + * + * l2jserver 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. + * + * l2jserver 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 l2jserver. If not, see . + */ package com.l2jserver.service.game.character; /** diff --git a/src/main/java/com/l2jserver/service/game/character/CharacterAlreadyWalkingServiceException.java b/src/main/java/com/l2jserver/service/game/character/CharacterAlreadyWalkingServiceException.java index e3e3adb0f..f25d5e5b3 100644 --- a/src/main/java/com/l2jserver/service/game/character/CharacterAlreadyWalkingServiceException.java +++ b/src/main/java/com/l2jserver/service/game/character/CharacterAlreadyWalkingServiceException.java @@ -1,3 +1,19 @@ +/* + * This file is part of l2jserver . + * + * l2jserver 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. + * + * l2jserver 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 l2jserver. If not, see . + */ package com.l2jserver.service.game.character; /** diff --git a/src/main/java/com/l2jserver/service/game/character/CharacterInJailServiceException.java b/src/main/java/com/l2jserver/service/game/character/CharacterInJailServiceException.java index 577f44d74..6311cf147 100644 --- a/src/main/java/com/l2jserver/service/game/character/CharacterInJailServiceException.java +++ b/src/main/java/com/l2jserver/service/game/character/CharacterInJailServiceException.java @@ -1,3 +1,19 @@ +/* + * This file is part of l2jserver . + * + * l2jserver 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. + * + * l2jserver 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 l2jserver. If not, see . + */ package com.l2jserver.service.game.character; /** diff --git a/src/main/java/com/l2jserver/service/game/character/CharacterNotInJailServiceException.java b/src/main/java/com/l2jserver/service/game/character/CharacterNotInJailServiceException.java index b5764f89e..210522ed1 100644 --- a/src/main/java/com/l2jserver/service/game/character/CharacterNotInJailServiceException.java +++ b/src/main/java/com/l2jserver/service/game/character/CharacterNotInJailServiceException.java @@ -1,3 +1,19 @@ +/* + * This file is part of l2jserver . + * + * l2jserver 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. + * + * l2jserver 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 l2jserver. If not, see . + */ package com.l2jserver.service.game.character; /** diff --git a/src/main/java/com/l2jserver/service/game/character/CharacterServiceImpl.java b/src/main/java/com/l2jserver/service/game/character/CharacterServiceImpl.java index fd1d0b5d1..ca9dba49e 100644 --- a/src/main/java/com/l2jserver/service/game/character/CharacterServiceImpl.java +++ b/src/main/java/com/l2jserver/service/game/character/CharacterServiceImpl.java @@ -52,10 +52,10 @@ import com.l2jserver.model.world.npc.event.NPCSpawnEvent; import com.l2jserver.model.world.player.event.PlayerTeleportedEvent; import com.l2jserver.service.AbstractService; import com.l2jserver.service.AbstractService.Depends; +import com.l2jserver.service.game.chat.ChatChannel; +import com.l2jserver.service.game.chat.ChatChannelListener; import com.l2jserver.service.game.chat.ChatMessageDestination; import com.l2jserver.service.game.chat.ChatService; -import com.l2jserver.service.game.chat.channel.ChatChannel; -import com.l2jserver.service.game.chat.channel.ChatChannelListener; import com.l2jserver.service.game.spawn.AlreadySpawnedServiceException; import com.l2jserver.service.game.spawn.NotSpawnedServiceException; import com.l2jserver.service.game.spawn.SpawnPointNotFoundServiceException; @@ -133,6 +133,8 @@ public class CharacterServiceImpl extends AbstractService implements return; itemDao.loadInventory(character); + + character.setOnline(true); // chat listener final ChatChannelListener globalChatListener = new ChatChannelListener() { @@ -258,6 +260,7 @@ public class CharacterServiceImpl extends AbstractService implements Preconditions.checkNotNull(character, "character"); spawnService.unspawn(character); eventDispatcher.dispatch(new CharacterLeaveWorldEvent(character)); + character.setOnline(false); } @Override diff --git a/src/main/java/com/l2jserver/service/game/chat/CannotChatToSelfChatServiceException.java b/src/main/java/com/l2jserver/service/game/chat/CannotChatToSelfChatServiceException.java index b936c94c7..f2e9245c4 100644 --- a/src/main/java/com/l2jserver/service/game/chat/CannotChatToSelfChatServiceException.java +++ b/src/main/java/com/l2jserver/service/game/chat/CannotChatToSelfChatServiceException.java @@ -1,12 +1,26 @@ +/* + * This file is part of l2jserver . + * + * l2jserver 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. + * + * l2jserver 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 l2jserver. If not, see . + */ package com.l2jserver.service.game.chat; - /** * Exception thrown if the player is trying to chat with itself. * * @author Rogiel */ -public class CannotChatToSelfChatServiceException extends - ChatServiceException { +public class CannotChatToSelfChatServiceException extends ChatServiceException { private static final long serialVersionUID = 1L; } \ No newline at end of file diff --git a/src/main/java/com/l2jserver/service/game/chat/ChatBanActiveChatServiceException.java b/src/main/java/com/l2jserver/service/game/chat/ChatBanActiveChatServiceException.java index 1338239d5..b1db9aeb2 100644 --- a/src/main/java/com/l2jserver/service/game/chat/ChatBanActiveChatServiceException.java +++ b/src/main/java/com/l2jserver/service/game/chat/ChatBanActiveChatServiceException.java @@ -1,3 +1,19 @@ +/* + * This file is part of l2jserver . + * + * l2jserver 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. + * + * l2jserver 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 l2jserver. If not, see . + */ package com.l2jserver.service.game.chat; diff --git a/src/main/java/com/l2jserver/service/game/chat/channel/ChatChannel.java b/src/main/java/com/l2jserver/service/game/chat/ChatChannel.java similarity index 86% rename from src/main/java/com/l2jserver/service/game/chat/channel/ChatChannel.java rename to src/main/java/com/l2jserver/service/game/chat/ChatChannel.java index 3b2d51ff6..241539111 100644 --- a/src/main/java/com/l2jserver/service/game/chat/channel/ChatChannel.java +++ b/src/main/java/com/l2jserver/service/game/chat/ChatChannel.java @@ -14,10 +14,9 @@ * You should have received a copy of the GNU General Public License * along with l2jserver. If not, see . */ -package com.l2jserver.service.game.chat.channel; +package com.l2jserver.service.game.chat; import com.l2jserver.model.id.object.CharacterID; -import com.l2jserver.service.game.chat.ChatBanActiveChatServiceException; /** * The {@link ChatChannel} object is used to send messages to a channel. @@ -38,9 +37,13 @@ public interface ChatChannel { * the message to be sent * @throws ChatBanActiveChatServiceException * if sender is banned from chatting + * @throws ChatTargetOfflineServiceException + * if the target is offline. Will be be thrown in + * {@link PrivateChatChannel}. */ void send(CharacterID sender, String message) - throws ChatBanActiveChatServiceException; + throws ChatBanActiveChatServiceException, + ChatTargetOfflineServiceException; /** * Adds a {@link ChatChannelListener} that will be notified once a message diff --git a/src/main/java/com/l2jserver/service/game/chat/channel/ChatChannelListener.java b/src/main/java/com/l2jserver/service/game/chat/ChatChannelListener.java similarity index 96% rename from src/main/java/com/l2jserver/service/game/chat/channel/ChatChannelListener.java rename to src/main/java/com/l2jserver/service/game/chat/ChatChannelListener.java index a33cb9ca7..1f3ba31db 100644 --- a/src/main/java/com/l2jserver/service/game/chat/channel/ChatChannelListener.java +++ b/src/main/java/com/l2jserver/service/game/chat/ChatChannelListener.java @@ -14,7 +14,7 @@ * You should have received a copy of the GNU General Public License * along with l2jserver. If not, see . */ -package com.l2jserver.service.game.chat.channel; +package com.l2jserver.service.game.chat; import com.l2jserver.model.id.object.CharacterID; diff --git a/src/main/java/com/l2jserver/service/game/chat/ChatService.java b/src/main/java/com/l2jserver/service/game/chat/ChatService.java index c26a7d449..c07f778e1 100644 --- a/src/main/java/com/l2jserver/service/game/chat/ChatService.java +++ b/src/main/java/com/l2jserver/service/game/chat/ChatService.java @@ -20,9 +20,6 @@ import com.l2jserver.model.id.object.CharacterID; import com.l2jserver.model.id.object.ClanID; import com.l2jserver.model.world.L2Character; import com.l2jserver.service.Service; -import com.l2jserver.service.game.chat.channel.ChatChannel; -import com.l2jserver.service.game.chat.channel.PrivateChatChannel; -import com.l2jserver.service.game.chat.channel.PublicChatChannel; /** * This service chatting in the server @@ -47,11 +44,14 @@ public interface ChatService extends Service { * if trying to send a private message to self * @throws ChatBanActiveChatServiceException * if there is chat ban active + * @throws ChatTargetOfflineServiceException + * if the chat target is offline */ void send(CharacterID sender, ChatMessageDestination chat, String message, String extra) throws TargetNotFoundChatServiceException, CannotChatToSelfChatServiceException, - ChatBanActiveChatServiceException; + ChatBanActiveChatServiceException, + ChatTargetOfflineServiceException; /** * Get the Global {@link ChatChannel}. Messages sent in this chat are diff --git a/src/main/java/com/l2jserver/service/game/chat/ChatTargetOfflineServiceException.java b/src/main/java/com/l2jserver/service/game/chat/ChatTargetOfflineServiceException.java new file mode 100644 index 000000000..e2a1e5c6e --- /dev/null +++ b/src/main/java/com/l2jserver/service/game/chat/ChatTargetOfflineServiceException.java @@ -0,0 +1,27 @@ +/* + * This file is part of l2jserver . + * + * l2jserver 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. + * + * l2jserver 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 l2jserver. If not, see . + */ +package com.l2jserver.service.game.chat; + +/** + * Exception thrown if the player trying to send a message to an player that is + * not online. + * + * @author Rogiel + */ +public class ChatTargetOfflineServiceException extends ChatServiceException { + private static final long serialVersionUID = 1L; +} \ No newline at end of file diff --git a/src/main/java/com/l2jserver/service/game/chat/channel/PrivateChatChannel.java b/src/main/java/com/l2jserver/service/game/chat/PrivateChatChannel.java similarity index 96% rename from src/main/java/com/l2jserver/service/game/chat/channel/PrivateChatChannel.java rename to src/main/java/com/l2jserver/service/game/chat/PrivateChatChannel.java index 41f83fe71..7b26c33e2 100644 --- a/src/main/java/com/l2jserver/service/game/chat/channel/PrivateChatChannel.java +++ b/src/main/java/com/l2jserver/service/game/chat/PrivateChatChannel.java @@ -14,7 +14,7 @@ * You should have received a copy of the GNU General Public License * along with l2jserver. If not, see . */ -package com.l2jserver.service.game.chat.channel; +package com.l2jserver.service.game.chat; import com.l2jserver.model.id.object.CharacterID; diff --git a/src/main/java/com/l2jserver/service/game/chat/channel/PublicChatChannel.java b/src/main/java/com/l2jserver/service/game/chat/PublicChatChannel.java similarity index 95% rename from src/main/java/com/l2jserver/service/game/chat/channel/PublicChatChannel.java rename to src/main/java/com/l2jserver/service/game/chat/PublicChatChannel.java index 0a669951c..605854d8a 100644 --- a/src/main/java/com/l2jserver/service/game/chat/channel/PublicChatChannel.java +++ b/src/main/java/com/l2jserver/service/game/chat/PublicChatChannel.java @@ -14,7 +14,7 @@ * You should have received a copy of the GNU General Public License * along with l2jserver. If not, see . */ -package com.l2jserver.service.game.chat.channel; +package com.l2jserver.service.game.chat; /** * An public {@link ChatChannel}. Please note that the concept of "public" does diff --git a/src/main/java/com/l2jserver/service/game/chat/SimpleChatService.java b/src/main/java/com/l2jserver/service/game/chat/SimpleChatService.java index 68429aeab..bcb5be274 100644 --- a/src/main/java/com/l2jserver/service/game/chat/SimpleChatService.java +++ b/src/main/java/com/l2jserver/service/game/chat/SimpleChatService.java @@ -29,10 +29,6 @@ import com.l2jserver.model.world.L2Character; import com.l2jserver.service.AbstractService; import com.l2jserver.service.ServiceStartException; import com.l2jserver.service.ServiceStopException; -import com.l2jserver.service.game.chat.channel.ChatChannel; -import com.l2jserver.service.game.chat.channel.ChatChannelListener; -import com.l2jserver.service.game.chat.channel.PrivateChatChannel; -import com.l2jserver.service.game.chat.channel.PublicChatChannel; import com.l2jserver.service.game.region.Region; import com.l2jserver.service.game.region.RegionService; import com.l2jserver.util.factory.CollectionFactory; @@ -108,7 +104,7 @@ public class SimpleChatService extends AbstractService implements ChatService { String message, String extra) throws TargetNotFoundChatServiceException, CannotChatToSelfChatServiceException, - ChatBanActiveChatServiceException { + ChatBanActiveChatServiceException, ChatTargetOfflineServiceException { Preconditions.checkNotNull(sender, "sender"); Preconditions.checkNotNull(message, "message"); diff --git a/src/main/java/com/l2jserver/service/game/chat/TargetNotFoundChatServiceException.java b/src/main/java/com/l2jserver/service/game/chat/TargetNotFoundChatServiceException.java index 549c66177..fe851c65f 100644 --- a/src/main/java/com/l2jserver/service/game/chat/TargetNotFoundChatServiceException.java +++ b/src/main/java/com/l2jserver/service/game/chat/TargetNotFoundChatServiceException.java @@ -1,12 +1,26 @@ +/* + * This file is part of l2jserver . + * + * l2jserver 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. + * + * l2jserver 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 l2jserver. If not, see . + */ package com.l2jserver.service.game.chat; - /** * Exception thrown when the target of an private chat is not found * * @author Rogiel */ -public class TargetNotFoundChatServiceException extends - ChatServiceException { +public class TargetNotFoundChatServiceException extends ChatServiceException { private static final long serialVersionUID = 1L; } \ No newline at end of file diff --git a/src/main/java/com/l2jserver/service/game/npc/ActionServiceException.java b/src/main/java/com/l2jserver/service/game/npc/ActionServiceException.java index 8f11b4222..b4fae8337 100644 --- a/src/main/java/com/l2jserver/service/game/npc/ActionServiceException.java +++ b/src/main/java/com/l2jserver/service/game/npc/ActionServiceException.java @@ -1,3 +1,19 @@ +/* + * This file is part of l2jserver . + * + * l2jserver 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. + * + * l2jserver 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 l2jserver. If not, see . + */ package com.l2jserver.service.game.npc; import com.l2jserver.util.exception.L2Exception; diff --git a/src/main/java/com/l2jserver/service/game/npc/NotAttackableNPCServiceException.java b/src/main/java/com/l2jserver/service/game/npc/NotAttackableNPCServiceException.java index 93283be7a..4f3db737e 100644 --- a/src/main/java/com/l2jserver/service/game/npc/NotAttackableNPCServiceException.java +++ b/src/main/java/com/l2jserver/service/game/npc/NotAttackableNPCServiceException.java @@ -1,3 +1,19 @@ +/* + * This file is part of l2jserver . + * + * l2jserver 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. + * + * l2jserver 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 l2jserver. If not, see . + */ package com.l2jserver.service.game.npc; import com.l2jserver.model.world.NPC; diff --git a/src/main/java/com/l2jserver/service/game/spawn/AlreadySpawnedServiceException.java b/src/main/java/com/l2jserver/service/game/spawn/AlreadySpawnedServiceException.java index f716340ee..b81dc9279 100644 --- a/src/main/java/com/l2jserver/service/game/spawn/AlreadySpawnedServiceException.java +++ b/src/main/java/com/l2jserver/service/game/spawn/AlreadySpawnedServiceException.java @@ -1,3 +1,19 @@ +/* + * This file is part of l2jserver . + * + * l2jserver 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. + * + * l2jserver 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 l2jserver. If not, see . + */ package com.l2jserver.service.game.spawn; diff --git a/src/main/java/com/l2jserver/service/game/spawn/NotSpawnedServiceException.java b/src/main/java/com/l2jserver/service/game/spawn/NotSpawnedServiceException.java index 7a869ec6e..574bb4bf5 100644 --- a/src/main/java/com/l2jserver/service/game/spawn/NotSpawnedServiceException.java +++ b/src/main/java/com/l2jserver/service/game/spawn/NotSpawnedServiceException.java @@ -1,3 +1,19 @@ +/* + * This file is part of l2jserver . + * + * l2jserver 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. + * + * l2jserver 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 l2jserver. If not, see . + */ package com.l2jserver.service.game.spawn; diff --git a/src/main/java/com/l2jserver/service/game/spawn/SpawnPointNotFoundServiceException.java b/src/main/java/com/l2jserver/service/game/spawn/SpawnPointNotFoundServiceException.java index 24b153c59..e5b127cfe 100644 --- a/src/main/java/com/l2jserver/service/game/spawn/SpawnPointNotFoundServiceException.java +++ b/src/main/java/com/l2jserver/service/game/spawn/SpawnPointNotFoundServiceException.java @@ -1,3 +1,19 @@ +/* + * This file is part of l2jserver . + * + * l2jserver 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. + * + * l2jserver 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 l2jserver. If not, see . + */ package com.l2jserver.service.game.spawn;