diff --git a/VotingPlugin/src/com/bencodez/votingplugin/bungee/velocity/VotingPluginVelocity.java b/VotingPlugin/src/com/bencodez/votingplugin/bungee/velocity/VotingPluginVelocity.java index 39e8d03b5..96be1076b 100644 --- a/VotingPlugin/src/com/bencodez/votingplugin/bungee/velocity/VotingPluginVelocity.java +++ b/VotingPlugin/src/com/bencodez/votingplugin/bungee/velocity/VotingPluginVelocity.java @@ -857,7 +857,9 @@ public void debug(String text) { data.getNode("Time").getLong(), data.getNode("Real").getBoolean(), data.getNode("Text").getString())); } - cachedVotes.put(server.getServer(serverToCheck).get(), vote); + if (server.getServer(serverToCheck).isPresent()) { + cachedVotes.put(server.getServer(serverToCheck).get(), vote); + } } } catch (Exception e) { e.printStackTrace();