mirror of
https://e.coding.net/circlecloud/SimpleProtect.git
synced 2024-11-22 01:49:03 +00:00
downgrade to java1.7...
Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
parent
a426fc49f1
commit
a552914002
@ -11,7 +11,7 @@
|
|||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
|
4
pom.xml
4
pom.xml
@ -19,8 +19,8 @@
|
|||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.1</version>
|
<version>3.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.8</source>
|
<source>1.7</source>
|
||||||
<target>1.8</target>
|
<target>1.7</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
@ -10,20 +10,23 @@ import cn.citycraft.SimpleProtect.SimpleProtect;
|
|||||||
public class Tip implements Listener {
|
public class Tip implements Listener {
|
||||||
SimpleProtect plugin;
|
SimpleProtect plugin;
|
||||||
|
|
||||||
public Tip(SimpleProtect instance) {
|
public Tip(final SimpleProtect instance) {
|
||||||
plugin = instance;
|
plugin = instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onJoin(final PlayerJoinEvent e) {
|
public void onJoin(final PlayerJoinEvent e) {
|
||||||
plugin.getServer().getScheduler().runTaskLaterAsynchronously(plugin, () -> {
|
plugin.getServer().getScheduler().runTaskLaterAsynchronously(plugin, new Runnable() {
|
||||||
Player p = e.getPlayer();
|
@Override
|
||||||
String[] msg = plugin.config.getStringArray("Tip.Message");
|
public void run() {
|
||||||
|
final Player p = e.getPlayer();
|
||||||
|
final String[] msg = plugin.config.getStringArray("Tip.Message");
|
||||||
for (String s : msg) {
|
for (String s : msg) {
|
||||||
s = s.replaceAll("&", "§");
|
s = s.replaceAll("&", "§");
|
||||||
p.sendMessage(plugin.servername + plugin.pluginname + s);
|
p.sendMessage(plugin.servername + plugin.pluginname + s);
|
||||||
}
|
}
|
||||||
} , 15);
|
}
|
||||||
|
}, 15);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -29,8 +29,8 @@ HighRedstone:
|
|||||||
#是否开启
|
#是否开启
|
||||||
Enable: true
|
Enable: true
|
||||||
Maxevents: 35
|
Maxevents: 35
|
||||||
Find: '&c发现高频红石 &3世界:%world% &d坐标: X:%x% Y:%y% Z:%z% &a已清理!'
|
Find: '&c发现高频红石 &3世界: %world% &d坐标: X:%x% Y:%y% Z:%z% &a已清理!'
|
||||||
Check: '&c高频红石数据监测 &5上述高频红石由 &6玩家:&a%player% &6放置!'
|
Check: '&c高频红石数据监测 &5上述高频红石由 &6玩家: &a%player% &6放置!'
|
||||||
Admin: '&c发现您放置高频红石,由于您是管理员,在服务器重启之前此高频将不会被清理,请用完后及时清理!'
|
Admin: '&c发现您放置高频红石,由于您是管理员,在服务器重启之前此高频将不会被清理,请用完后及时清理!'
|
||||||
|
|
||||||
#防止无限夜视
|
#防止无限夜视
|
||||||
|
Loading…
Reference in New Issue
Block a user