public void onEnable(){
		this.saveDefaultConfig();
		log = this.getLogger();

		Lang = this.getConfig().getString("language");
		if (Lang.equals("en")){
			chatname = "Game Server";
		}else if(Lang.equals("ja")){
			chatname = "ゲームサーバー";
		}else{
			log.info("[WARNING]" + Lang + " is not supported.");
			log.info("[WARNING]English(en) or Japanese(ja) Only.");
			log.info("[WARNING]言語設定" + Lang + "は使用できません");
			log.info("[WARNING]英語(en)か日本語(ja)のみ対応しています。");
			chatname = "Game Server";
		}
		
		final String url = this.getConfig().getString("socketchaturl");
		final String prefix = this.getConfig().getString("prefix");
		final String pass = this.getConfig().getString("socket_pass");
        getServer().getPluginManager().registerEvents(this, this);
		
		try {
			socket = new SocketIO(url);
	        socket.connect(new IOCallback() {
	            @Override
	            public void onMessage(JSONObject json, IOAcknowledge ack) {
	                try {
	                } catch (JSONException e) {
	                    e.printStackTrace();
	                }
	            }
	
	            @Override
	            public void onMessage(String data, IOAcknowledge ack) {
	            }
	
	            @Override
	            public void onError(SocketIOException socketIOException) {
	                log.info("[WARNING]Socket Error!");
	                socketIOException.printStackTrace();
	            }
	
	            @Override
	            public void onDisconnect() {
	                log.info("[WARNING]SocketChat Disconnect!");
	            }
	
	            @Override
	            public void onConnect() {
	                log.info("SocketChat Connect.");
	            }
	
	            @Override
	            public void on(String event, IOAcknowledge ack, Object... args) {
	            	if (event.equals("log")){
		            	final JSONObject jsondata = (JSONObject)args[0];
		            	if (!jsondata.isNull("comment")){
		            		String name = jsondata.getString("name");
		            		if (jsondata.isNull("channel") && !name.equals(chatname)){
			            		String comment = jsondata.getString("comment");
			            		String ip = jsondata.getString("ip");
			            		Bukkit.broadcastMessage(ChatColor.GREEN + "[" +  prefix + "]" + ChatColor.WHITE + name + " : " + comment + " (" + ip + ")");
		            		}
		            	}
	            	}
	            }
	        });
	        socket.emit("register", new JSONObject().put("mode", "client").put("lastid", 1));
	        socket.emit("inout", new JSONObject().put("name", chatname).put("pass", pass));
	        log.info("BukkitSocketChat has been enabled!");
		
		} catch (MalformedURLException e1) {
			e1.printStackTrace();
			log.info("[WARNING]BukkitSocketChat is Error!");
		}
        
		
	}