Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

Commit

Permalink
popcounter changes
Browse files Browse the repository at this point in the history
  • Loading branch information
HausemasterIssue authored Oct 11, 2021
1 parent 60b8275 commit 9f7aae7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ public enum TotemPopManager implements Manager {

if (playerPopCount.get(entityName) == null) {
playerPopCount.put(entityName, 1);
if(sendMsgs) MessageBus.sendClientPrefixMessage(chatFormatting + entityName + " popped " + ChatFormatting.RED + 1 + chatFormatting + " totem!");
if(sendMsgs) MessageBus.sendClientPrefixMessage(chatFormatting + entityName + " popped " + ChatFormatting.GREEN + 1 + chatFormatting + " totem!");
} else {
int popCounter = playerPopCount.get(entityName) + 1;

playerPopCount.put(entityName, popCounter);
if(sendMsgs) MessageBus.sendClientPrefixMessage(chatFormatting + entityName + " popped " + ChatFormatting.RED + popCounter + chatFormatting + " totems!");
if(sendMsgs) MessageBus.sendClientPrefixMessage(chatFormatting + entityName + " popped " + ChatFormatting.GREEN + popCounter + chatFormatting + " totems!");
}
});

Expand All @@ -90,4 +90,4 @@ public int getPlayerPopCount(String name) {

return 0;
}
}
}

0 comments on commit 9f7aae7

Please sign in to comment.