Skip to content

Commit

Permalink
Melhoria de formatação e revert commit ad1f7c1
Browse files Browse the repository at this point in the history
  • Loading branch information
SrBedrock committed Sep 12, 2024
1 parent 37772d2 commit f3674a8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ public abstract class AbstractPluginMessagingForwardingSource implements Forward
protected final VoteCache cache;
protected final ServerFilter serverFilter;
private final int dumpRate;

public AbstractPluginMessagingForwardingSource(String channel, ServerFilter serverFilter, ProxyVotifierPlugin plugin, VoteCache cache, int dumpRate) {
this.channel = channel;
this.plugin = plugin;
this.cache = cache;
this.serverFilter = serverFilter;
this.dumpRate = dumpRate;
}

protected AbstractPluginMessagingForwardingSource(String channel, ProxyVotifierPlugin plugin, VoteCache voteCache, int dumpRate) {
this(channel, null, plugin, voteCache, dumpRate);
}
Expand Down Expand Up @@ -96,7 +98,7 @@ protected void attemptToAddToCache(Vote v, String server) {

protected void attemptToAddToPlayerCache(Vote v, String player) {
if (cache != null) {
cache.addToCachePlayer(v, player.toLowerCase());
cache.addToCachePlayer(v, player);
if (plugin.isDebug()) {
plugin.getPluginLogger().info("Added to forwarding cache: " + v + " -> (player) " + player);
}
Expand Down

0 comments on commit f3674a8

Please sign in to comment.