parent
5d638c514e
commit
43223c91e1
|
@ -13,7 +13,7 @@ import org.bukkit.plugin.java.JavaPlugin;
|
||||||
import cn.citycraft.JoinMessage.listen.PlayerJoin;
|
import cn.citycraft.JoinMessage.listen.PlayerJoin;
|
||||||
import cn.citycraft.JoinMessage.listen.PlayerLogin;
|
import cn.citycraft.JoinMessage.listen.PlayerLogin;
|
||||||
|
|
||||||
public class Main extends JavaPlugin{
|
public class JoinMessage extends JavaPlugin{
|
||||||
|
|
||||||
List<Map<String, String[]>> perms = new ArrayList<Map<String, String[]>>();
|
List<Map<String, String[]>> perms = new ArrayList<Map<String, String[]>>();
|
||||||
|
|
|
@ -6,17 +6,17 @@ import org.bukkit.event.EventPriority;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
import org.bukkit.event.player.PlayerJoinEvent;
|
import org.bukkit.event.player.PlayerJoinEvent;
|
||||||
|
|
||||||
import cn.citycraft.JoinMessage.Main;
|
import cn.citycraft.JoinMessage.JoinMessage;
|
||||||
|
|
||||||
public class PlayerJoin implements Listener {
|
public class PlayerJoin implements Listener {
|
||||||
|
|
||||||
Main plugin;
|
JoinMessage plugin;
|
||||||
|
|
||||||
String[] lines;
|
String[] lines;
|
||||||
|
|
||||||
Player p;
|
Player p;
|
||||||
|
|
||||||
public PlayerJoin(Main main) {
|
public PlayerJoin(JoinMessage main) {
|
||||||
plugin = main;
|
plugin = main;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,18 +5,18 @@ import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.EventPriority;
|
import org.bukkit.event.EventPriority;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
|
|
||||||
import cn.citycraft.JoinMessage.Main;
|
import cn.citycraft.JoinMessage.JoinMessage;
|
||||||
import fr.xephi.authme.events.LoginEvent;
|
import fr.xephi.authme.events.LoginEvent;
|
||||||
|
|
||||||
public class PlayerLogin implements Listener {
|
public class PlayerLogin implements Listener {
|
||||||
|
|
||||||
Main plugin;
|
JoinMessage plugin;
|
||||||
|
|
||||||
String[] lines;
|
String[] lines;
|
||||||
|
|
||||||
Player p;
|
Player p;
|
||||||
|
|
||||||
public PlayerLogin(Main main) {
|
public PlayerLogin(JoinMessage main) {
|
||||||
plugin = main;
|
plugin = main;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
name: JoinMessage
|
name: JoinMessage
|
||||||
main: cn.citycraft.JoinMessage.Main
|
main: cn.citycraft.JoinMessage.JoinMessage
|
||||||
version: 1.0
|
version: 1.0
|
||||||
auther: 喵♂呜
|
auther: 喵♂呜
|
||||||
commands:
|
commands:
|
||||||
joinmessage:
|
joinmessage:
|
||||||
description: 登录消息
|
description: 登录消息
|
||||||
usage: 使用/joinmessage reload 重载配置!
|
usage: 使用/joinmessage reload 重载配置!
|
Loading…
Reference in New Issue