注意: 这并不能让你的 aternos 服务器始终保持运行状态,该插件旨在帮助服务器在 Minecraft 认证服务器宕机时维持玩家连接。
当 Mojang 服务器离线时,初次安装此插件是无效的,必须在 Mojang 服务器在线期间完成安装!
概述
讨厌 Mojang 服务器宕机吗?我也是。为了解决这个问题,我创建了 AlwaysOnline。这是一个插件,能够在 Mojang 离线时让你的 Bukkit、Spigot、Paper 或 Bungeecord 服务器保持在线。
工作原理
插件设置为一个可配置延迟的重复任务,用于检测会话服务器是否处于离线状态。如果检测到离线,插件将进入 Mojang 离线模式。在此模式下,如果玩家的 IP 地址与其上次认证成功登录时的 IP 匹配,则允许玩家登录。如果不匹配,则拒绝其登录。此外,如果 Mojang 认证服务器宕机,插件还会阻止新玩家加入。
兼容:Bungeecord, Velocity, Spigot, Paper, Bukkit
功能特性
- 使用 FlatFile 类型数据库或 MySQL 存储上次认证成功的数据
- UUID 不会被破解,而是保持正版(Premium)。这意味着玩家 UUID 将始终保持一致。
- 不依赖任何第三方服务
- 与大多数 Bukkit、Spigot、Paper 及 Bungee 插件兼容
- 轻量且高效
- 无需额外库支持
- 兼容所有 Bungeecord 版本
- 兼容所有 Bukkit、Spigot、Paper 版本
- 完全免费!
命令
-
/alwaysonline toggle - 手动切换 Mojang 离线模式及其恢复。
-
/alwaysonline enable - 使插件开始检查 Mojang 服务器是否离线。
-
/alwaysonline disable - 使插件停止检查 Mojang 服务器是否离线。
-
/alwaysonline reload - 重新加载配置文件。
上述所有命令所需的权限节点为 alwaysonline.usage
权限
alwaysonline.notify - 拥有此权限节点的玩家将在 Mojang 服务器上线或下线时收到通知。
配置文件
#欢迎来到 AlwaysOnline 主配置文件!
#检查 Mojang 是否在线之间的等待延迟,单位为秒。
check-interval=60
#Mojang 服务器离线时显示在 MOTD(服务器描述)中的消息。设置为 'null' 以禁用。
message-motd-offline=&eMojang servers are down,\n&ebut you can still connect!
#当用户尝试在 Mojang 服务器离线时登录,但其 IP 不匹配时显示的消息。
message-kick-ip=We can not let you join since you are not on the same computer you logged on before!
#当新用户尝试在 Mojang 服务器离线时登录所显示的消息。
message-kick-new=We can not let you join because the mojang servers are offline!
#当用户尝试使用无效的 Minecraft 用户名登录时显示的消息。
message-kick-invalid=Invalid username. Hacking?
#当 Mojang 服务器下线时显示的消息。设置为 null 以禁用。
message-mojang-offline=&5[&2AlwaysOnline&5]&a Mojang servers are now offline!
#当 Mojang 服务器重新上线时显示的消息。设置为 null 以禁用。
message-mojang-online=&5[&2AlwaysOnline&5]&a Mojang servers are now online!
#以下是三种会话服务器检测方法,可用于判断 Mojang 是否在线。
#例如,如果 http-head-session-server 为 true 且 mojang-server-status 也为 true,则插件
#仅在所有服务均声明会话服务器离线时才会进入 Mojang 离线模式。
#使用位于 https://sessionserver.mojang.com/ 的状态信息
http-head-session-server=true
##########################################
# Mysql 数据库信息
# 仅在启用 mysql 时编辑
##########################################
use_mysql=false
host=127.0.0.1
port=3306
database-name=minecraft
database-username=root
database-password=password
#请勿更改此项!
config_version=5
以下信息会发送至 bstats.org:
- 唯一标识符
- 服务器的 Java 版本
- 服务器是处于在线模式还是离线模式
- 插件的版本号
- 服务器的核心版本
- 操作系统的版本、名称和架构
- CPU 的核心数量
- 当前在线玩家数量
- Metrics 版本号
可以通过编辑 bStats 的配置文件全局禁用 Metrics 来退出此服务。
Notice: This will not keep your aternos server always running, this plugin is to help servers keep players connecting whilst minecraft authentication servers are down.
This plugin will NOT help you when you first install it when mojang servers are offline, it must be installed when they are online!
Overview
Hate mojang servers being offline? Same with me. So to resolve this issue, I have created AlwaysOnline. A plugin that keeps your bukkit, spigot, paper or bungeecord server online while mojang is offline.
How it works
The plugin is set to a repeating task with a configurable delay, to see if the session servers are offline. If they are, the plugin will go into mojang offline mode. When in this mode, the server will allow players to login if their ip matches from their last authenticated login. If they don't match, it denies them from logging in. The plugin will also deny new players from joining if the mojang authentication servers are down.
Works with: Bungeecord, Velocity, Spigot, Paper, Bukkit
Features
-
Stores last authenticated data in a FlatFile type database or MySQL
-
UUIDs will not be cracked, but instead premium. This means that player UUIDs will always be consistent.
-
Doesn't rely on any third party services
-
Compatible with most bukkit, spigot, paper & bungee plugins
-
Lightweight and efficient
-
No libraries required
-
Works with all bungeecord versions
-
Works with bukkit, spigot, paper versions
-
It's free!
Commands
-
/alwaysonline toggle - Manually toggle between mojang offline mode and back.
-
/alwaysonline enable - Makes the plugin check to see if the mojang servers are offline.
-
/alwaysonline disable - Makes the plugin stop checking to see if the mojang servers are offline.
-
/alwaysonline reload - Reloads the configuration file.
Permission node for all of these commands is alwaysonline.usage
Permissions
alwaysonline.notify - Players with this permission node will be alerted when the mojang servers go online or offline.
Configuration file
#Welcome to the AlwaysOnline main configuration file!
#The delay to wait between checking to see if mojang is online, in seconds.
check-interval=60
#Message for the MOTD to be when mojang servers are offline. Set to 'null' to disable.
message-motd-offline=&eMojang servers are down,\n&ebut you can still connect!
#The message to display when a user attempts to login while the mojang servers are offline, but their IP does not match.
message-kick-ip=We can not let you join since you are not on the same computer you logged on before!
#The message to display when a user is new and logs in while mojang servers are offline.
message-kick-new=We can not let you join because the mojang servers are offline!
#The message to display when a user attempts to login with an invalid minecraft username.
message-kick-invalid=Invalid username. Hacking?
#The message to display when mojang servers go offline. Set to null to disable.
message-mojang-offline=&5[&2AlwaysOnline&5]&a Mojang servers are now offline!
#The message to display when mojang servers go back online. Set to null to disable.
message-mojang-online=&5[&2AlwaysOnline&5]&a Mojang servers are now online!
#Below are three session server check methods which can be used to determine if mojang is online or not.
#For example, if http-head-session-server is true AND mojang-server-status is also true, then the plugin will
#only go into mojang offline mode if both services claim the session servers are offline.
#Uses the status information located at https://sessionserver.mojang.com/
http-head-session-server=true
##########################################
# Mysql Database Information
# Only edit if using mysql
##########################################
use_mysql=false
host=127.0.0.1
port=3306
database-name=minecraft
database-username=root
database-password=password
#Please do not change this!
config_version=5
The following information is sent to bstats.org:
- A unique identifier
- The server's Java version
- Whether the server is on online or offline mode.
- The plugin's version
- The server's version
- The OS' version, name, and architecture
- The core count of the CPU
- The number of players online
- The Metrics version
Opting out of this service can be done by disabling Metrics globally by editing the bStats's configuration file.
评论 0
登录后参与评分
还没有评论,来抢沙发吧