
你好!我叫 Nathan。这是我制作的第一款插件。这是一个简单的插件,如果没有管理员在线,它将阻止玩家加入服务器。
希望大家喜欢它,如果足够多人喜欢的话,我会努力保持更新。
设置
1. 下载“NoAdminKicker”jar 文件。
2. 将 jar 文件放入你的 plugins(插件)目录中
3. 启动一次服务器以生成配置文件
3. 在 Admins.yml 中添加管理员名称,或者给你的管理员授予权限“noadminkicker.isadmin”。
另外,你也可以在游戏中使用 /addadmin <playername> 命令。(查看下方以获取详细的命令和权限列表)
就是这样 :)
命令
- /addadmin <playername> - 这将把一名玩家添加到 'admins.txt' 文件中。
- /deladmin <playername> - 这将从 'admins.txt' 文件中移除一名玩家。
- /adminon - 这是一个非常敏感的命令。它会更改系统内部关于是否有管理员在线的变量。因此,如果你遇到系统错误地认为有管理员在线的情况,只需使用该命令即可。此命令仅限操作员(operator)使用,没有关联的权限节点。
- /onlineadmins - 这将列出所有可用的管理员和操作员(即使他们不在 admins.txt 中,操作员也默认被视为管理员)。
- /adminlist - 这将列出 admins.txt 中的所有管理员,但不会列出操作员。
权限
- noadminkicker.addadmin - 允许该人员使用 /addadmin 命令。(默认授予操作员)
- noadminkicker.deladmin - 允许该人员使用 /deladmin 命令。(默认授予操作员)
- noadminkicker.exempt - 允许玩家在没有任何管理员在线的情况下加入服务器。(实验性功能)
- noadminkicker.isadmin - 与将用户添加到管理员列表相同,只是通过权限来实现。
- noadminkicker.onlineadmins - 允许用户使用 /onlineadmins 命令
- noadminkicker.adminlist - 允许用户使用 /adminlist 命令
- noadminkicker.admintool - 允许用户设置 S-Area。(请向下滚动以了解更多信息)
- noadminkicker.spawn - 允许用户使用 /s-spawn 命令(仅在启用 S-Area 时有效)
S-Area
S-Area 是一个简单的设置,它使得当管理员不在线时玩家仍然可以加入服务器,但会将他们限制在特定区域内。
你必须完成此设置的每一步,否则一切将无法正常工作
- 首先,打开 config.yml 并将 “S-Area” 设置为 “true”
- 接下来,进入游戏并输入 /admintool。它会给你一根骨头。
- 使用这根骨头选择一个长方体区域。左键点击选择第一个位置,右键点击选择第二个位置。
- 然后,输入 /asz 它将把 S-Area 设置为该区域。
- 现在,在该区域的某个地方,站在出生点并输入 /set-s-spawn
- 就这样。你完成了。:D
如果你有任何问题,请务必告诉我。S-Area 仍处于实验阶段
源代码
下载
V3.6
更新日志:
- 在配置文件中添加了前缀。
- 兼容 JRE6
V3.5
更新日志:
- 修复了一些拼写错误
- 修复了消息显示两次的问题
- 修复了每当任何人离开时都显示“NoAdminOn”消息的问题
V3.0
更新日志:
- 添加了 S-Area 重大更新
- 修复了从控制台发送命令的问题。
V2.2
更新日志:
- 修复了管理员离开且其他人仍在线,但系统未正确识别导致的错误。
V2.1
更新日志:
- 修复了权限节点
V2.0
更新日志:
- 添加了 /adminlist,用于列出 admins.txt 中的所有管理员
- 添加了 /onlineadmins,用于列出当时所有在线的管理员
- 添加了 /deladmin,允许你从 admins.txt 中移除管理员
- 修复了“All admins are gone”消息
- 添加了配置文件
- 添加了权限
- 添加了 /adminon 命令
联系方式
你可以通过 nathan@fiscalleti.com 联系我
已知漏洞
如果有管理员在线,而你重新加载服务器,一切都会出错。你可以尝试让他在游戏中执行 /adminon 命令。但这并不总是有效。所以,请确保在重新加载之前所有管理员都已离开服务器。这是目前唯一的已知漏洞 :)
玩得开心!
感谢 PoopYou 为我开启了插件开发之旅!

Hi! My name's Nathan. This is my first plugin I have made. It's a simple plugin that won't let players join unless there is an admin on.
I hope you all enjoy it, I will try to keep it updated if enough people like it.
Setup
1. Download the "NoAdminKicker" jar File.
2. Put the jar file in your plugins directory
3. Start your server once to generate a config file
3. Add admin names to the Admins.yml OR give your admins the permission "noadminkicker.isadmin".
Alternately, you can use the /addadmin <playername> in game. (View below for a detailed list of commands and permissions)
And that's all :)
Commands
- /addadmin <playername> - This will add a player to the 'admins.txt' file.
- /deladmin <playername> - This will remove a player from the 'admins.txt' file.
- /adminon - This is a VERY delicate command. It will change the internal variable of weather or not an admin is on, So, if you ever have a problem where the system is saying that there is an admin on, just use that command. This command is ONLY usable by an operator. There is no permission associated with it.
- /onlineadmins - This will list all available admins and ops (Ops are default as admins even if they're not in the admins.txt)
- /adminlist - This will list all of the admins in admins.txt, It won't list ops though.
Permissions
- noadminkicker.addadmin - Allows the person to use the /addadmin command. (this will default to op)
- noadminkicker.deladmin - Allows the person to use the /deladmin command. (this will default to op)
- noadminkicker.exempt - Allows a player to join even if there is no admins on. (Experimental)
- noadminkicker.isadmin - Same thing as adding a user to the admins list, only gives them the permisson instead.
- noadminkicker.onlineadmins - Allows a user to use the /onlineadmins command
- noadminkicker.adminlist - Allows a user to use the /adminlist command
- noadminkicker.admintool - Allows a user to set up the S-Area. (Please scroll down for more info)
- noadminkicker.spawn - Allows a user to use the /s-spawn command (Only if S-Area is enabled)
S-Area
S-Area is a simple setup, It makes it so that playerse can join when admins are not on, But it restricts them to a specific area.
YOU MUST COMPLETE THIS SETUP ALL THE WAY OR NOTHING WILL WORK RIGHT
- First, Open up config.yml and set "S-Area" to "true"
- Next, Get in game and do /admintool. It will give you a bone.
- With the bone, select a cubiod. Left click to select the first position and right click to select the second position.
- Next, do /asz and it will set the S-Area to that zone.
- Now, somewhere in that zone, stand in a spawn spot and do /set-s-spawn
- And that's it. You're done. :D
If you have any issues PLEASE let me know. S-Area is still experimental
Source Code
Download
V3.6
ChangeLog:
- Added prefix in config.
- Made JRE6 Friendly
V3.5
ChangeLog:
- Fixed Some Typos
- Fixed messages being displayed twice
- Fixed "NoAdminOn" message showing whenever anyone leaves
V3.0
ChangeLog:
- Added S-Area BIG UPDATE
- Fixed commands being sent from console.
V2.2
ChangeLog:
- Fixed admin leaving and others still being on, but system not thinking so errors.
V2.1
ChangeLog:
- Fixed Permissions Nodes
V2.0
ChangeLog:
- Added /adminlist Which will list all admins in admins.txt
- Added /onlineadmins Which will list all online admins at the time
- Added /deladmin Which allows you to remove an admin form the admins.txt
- Fixed the "All admins are gone" message
- Added config file
- Added permissions
- Added /adminon command
Contact
You can contact me at nathan@fiscalleti.com
Known Bugs
If an admin is on, And you reload the server. Everythign will be screwed up. You can TRY having him do the /adminon command. But that doesn't always work. So, just make sure that all admins are off the server before you reload. That's the only known bug right now :)
Have fun!
Thanks to PoopYou for getting me started with plugin coding!
评论 0
登录后参与评分
还没有评论,来抢沙发吧