diff --git a/.classpath b/.classpath
index d19be42..bea39b1 100644
--- a/.classpath
+++ b/.classpath
@@ -11,7 +11,7 @@
-
+
diff --git a/pom.xml b/pom.xml
index 7f11e03..cd00023 100644
--- a/pom.xml
+++ b/pom.xml
@@ -19,8 +19,8 @@
maven-compiler-plugin
3.1
-
- 1.8
+
+ 1.7
diff --git a/src/main/java/cn/citycraft/SimpleProtect/listen/Tip.java b/src/main/java/cn/citycraft/SimpleProtect/listen/Tip.java
index 9743105..b3aaab2 100644
--- a/src/main/java/cn/citycraft/SimpleProtect/listen/Tip.java
+++ b/src/main/java/cn/citycraft/SimpleProtect/listen/Tip.java
@@ -10,20 +10,23 @@ import cn.citycraft.SimpleProtect.SimpleProtect;
public class Tip implements Listener {
SimpleProtect plugin;
- public Tip(SimpleProtect instance) {
+ public Tip(final SimpleProtect instance) {
plugin = instance;
}
@EventHandler
public void onJoin(final PlayerJoinEvent e) {
- plugin.getServer().getScheduler().runTaskLaterAsynchronously(plugin, () -> {
- Player p = e.getPlayer();
- String[] msg = plugin.config.getStringArray("Tip.Message");
- for (String s : msg) {
- s = s.replaceAll("&", "§");
- p.sendMessage(plugin.servername + plugin.pluginname + s);
+ plugin.getServer().getScheduler().runTaskLaterAsynchronously(plugin, new Runnable() {
+ @Override
+ public void run() {
+ final Player p = e.getPlayer();
+ final String[] msg = plugin.config.getStringArray("Tip.Message");
+ for (String s : msg) {
+ s = s.replaceAll("&", "§");
+ p.sendMessage(plugin.servername + plugin.pluginname + s);
+ }
}
- } , 15);
+ }, 15);
}
}
diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml
index 16ed9da..c78ea0d 100644
--- a/src/main/resources/config.yml
+++ b/src/main/resources/config.yml
@@ -29,8 +29,8 @@ HighRedstone:
#是否开启
Enable: true
Maxevents: 35
- Find: '&c发现高频红石 &3世界:%world% &d坐标: X:%x% Y:%y% Z:%z% &a已清理!'
- Check: '&c高频红石数据监测 &5上述高频红石由 &6玩家:&a%player% &6放置!'
+ Find: '&c发现高频红石 &3世界: %world% &d坐标: X:%x% Y:%y% Z:%z% &a已清理!'
+ Check: '&c高频红石数据监测 &5上述高频红石由 &6玩家: &a%player% &6放置!'
Admin: '&c发现您放置高频红石,由于您是管理员,在服务器重启之前此高频将不会被清理,请用完后及时清理!'
#防止无限夜视