|
|
|
@ -275,7 +275,7 @@ public enum ChatManager {
@@ -275,7 +275,7 @@ public enum ChatManager {
|
|
|
|
|
PlayerCharacter pcSender = null; |
|
|
|
|
|
|
|
|
|
if (sender.getObjectType().equals(GameObjectType.PlayerCharacter)) |
|
|
|
|
pcSender = (PlayerCharacter) sender; |
|
|
|
|
pcSender = sender; |
|
|
|
|
|
|
|
|
|
if (isFlood) { |
|
|
|
|
ChatManager.chatSayError(pcSender, FLOOD_USER_ERROR); |
|
|
|
@ -597,7 +597,6 @@ public enum ChatManager {
@@ -597,7 +597,6 @@ public enum ChatManager {
|
|
|
|
|
distroList.remove(awo); |
|
|
|
|
else if (awo.getObjectUUID() == tar.getObjectUUID()) |
|
|
|
|
distroList.remove(awo); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String textToThief = ""; |
|
|
|
@ -607,7 +606,6 @@ public enum ChatManager {
@@ -607,7 +606,6 @@ public enum ChatManager {
|
|
|
|
|
if (item != null) //Steal
|
|
|
|
|
if (success) { |
|
|
|
|
String name = ""; |
|
|
|
|
if (item.getItemBase() != null) |
|
|
|
|
if (item.getItemBase().getUUID() == 7) |
|
|
|
|
name = amount + " gold "; |
|
|
|
|
else { |
|
|
|
@ -641,6 +639,7 @@ public enum ChatManager {
@@ -641,6 +639,7 @@ public enum ChatManager {
|
|
|
|
|
//Send msg to thief
|
|
|
|
|
HashSet<AbstractWorldObject> senderList = new HashSet<>(); |
|
|
|
|
senderList.add(sender); |
|
|
|
|
|
|
|
|
|
if (!textToThief.isEmpty()) |
|
|
|
|
ChatManager.chatSystemSend(senderList, textToThief, 1, 2); |
|
|
|
|
|
|
|
|
|