This commit is contained in:
RoboMWM 2016-10-10 19:58:32 -07:00
parent 8eb6ac9543
commit 047f4d89d2
3 changed files with 9 additions and 8 deletions

View File

@ -6,7 +6,7 @@
<groupId>me.ryanhamshire</groupId>
<artifactId>GriefPrevention</artifactId>
<version>15.3</version>
<version>15.3.1</version>
<properties>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>

View File

@ -280,6 +280,7 @@ public class GriefPrevention extends JavaPlugin
{
GriefPrevention.AddLogEntry("Because there was a problem with the database, GriefPrevention will not function properly. Either update the database config settings resolve the issue, or delete those lines from your config.yml so that GriefPrevention can use the file system to store data.");
e.printStackTrace();
this.getServer().getPluginManager().disablePlugin(this);
return;
}
}

View File

@ -78,6 +78,13 @@ class PlayerEventHandler implements Listener
{
private DataStore dataStore;
private GriefPrevention instance;
//typical constructor, yawn
PlayerEventHandler(DataStore dataStore, GriefPrevention plugin)
{
this.dataStore = dataStore;
this.instance = plugin;
}
//list of temporarily banned ip's
private ArrayList<IpBanInfo> tempBannedIps = new ArrayList<IpBanInfo>();
@ -97,13 +104,6 @@ class PlayerEventHandler implements Listener
//spam tracker
SpamDetector spamDetector = new SpamDetector();
//typical constructor, yawn
PlayerEventHandler(DataStore dataStore, GriefPrevention plugin)
{
this.dataStore = dataStore;
this.instance = plugin;
}
//when a player chats, monitor for spam
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
synchronized void onPlayerChat (AsyncPlayerChatEvent event)