katorlys / starlinutils Goto Github PK
View Code? Open in Web Editor NEW「定制」星林宇宙 (StarlinWorld) 服务器定制插件 StarlinUtils
License: Other
「定制」星林宇宙 (StarlinWorld) 服务器定制插件 StarlinUtils
License: Other
不再使用bukkit提供的原版封禁方法,避免正版改ID后卷土重来
CodeFactor found an issue: Conditional logic can be removed.
It's currently on:
src\main\java\com\github\katorly\starlinutils\festival\AprilFools.java:20
服主无需再安装额外的motd插件
In most cases using a spread operator causes a full copy of the array to be created before calling a method. This may result in a performance penalty.
player.spigot().sendMessage(
略
No response
年.月
记录玩家游玩时间高级功能(不一定有精力和时间去实现):
应 @Hailaylin 要求
附赠 Hailay 自己在服务器 StarlinUtils 插件文件夹中计划的 starlinutils.sql(敏感信息已打码):
/*
Navicat Premium Data Transfer
Source Server : root
Source Server Type : MySQL
Source Server Version : *****
Source Host : localhost:****
Source Schema : starlinworld
Target Server Type : MySQL
Target Server Version : *****
File Encoding : *****
Date: **/**/2022 **:**:**
*/
SET NAMES *******;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for online_time
-- ----------------------------
DROP TABLE IF EXISTS `online_time`;
CREATE TABLE `online_time` (
`uuid` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '玩家唯一标识符',
`username` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '玩家名',
`total_time` double(100, 4) UNSIGNED ZEROFILL NOT NULL COMMENT '总游戏在线时间',
`first_login` datetime(6) NULL DEFAULT NULL COMMENT '初次登陆时间(从2022.1.28开始记录)',
`latest_login` datetime(6) NOT NULL COMMENT '上一次登陆时间',
`2022_01` double(64, 4) NULL DEFAULT NULL COMMENT '每月玩家在线时长/小时',
`2022_02` double(64, 4) NULL DEFAULT NULL,
`2022_03` double(64, 4) NULL DEFAULT NULL,
`2022_04` double(64, 4) NULL DEFAULT NULL,
`2022_05` double(64, 4) NULL DEFAULT NULL,
`2022_06` double(64, 4) NULL DEFAULT NULL,
`2022_07` double(64, 4) NULL DEFAULT NULL,
`2022_08` double(64, 4) NULL DEFAULT NULL,
`2022_09` double(64, 4) NULL DEFAULT NULL,
`2022_10` double(64, 4) NULL DEFAULT NULL,
`2022_11` double(64, 4) NULL DEFAULT NULL,
`2022_12` double(64, 4) NULL DEFAULT NULL,
PRIMARY KEY (`uuid`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of online_time
-- ----------------------------
SET FOREIGN_KEY_CHECKS = 1;
/help
monthly.yml
& timedata.yml
in database form instead of yaml filesMore expected functions can be promoted just by commenting under this issue. @Hailaylin
轻量的脏话屏蔽功能
对于每个玩家:
fly
权限组是否存在,不存在则自动创建并加入预设权限fly
权限组加入权限以上使用:Luckperms 权限组管理插件
更新迭代服务器的时候可用
No response
Describe the bug
Player's total play time is expected to be a number with one decimal place, but the actual config generated has more decimals.
Your operating environment
Steps to Reproduce
Expected behavior
timedata.yml:
d94a****-****-****-****-****f812****:
name: E******m
first-time: 2022.01.17 20:47
total: 1.4
Actual behavior
timedata.yml:
d94a****-****-****-****-****f812****:
name: E******m
first-time: 2022.01.17 20:47
total: 1.4000000000000001
Other
一键自动为服务器设置预设设置:
适用于版本更新迭代时对服务器的重新配置。
可自动设置每次更新时都需要重复进行的设置。
可以不需要该模块
其它保护就不添加了,如有需要可以使用worldguard之类的插件
略
No response
This condition is too complex (7). Defined complexity threshold for conditions is set to '4'
if (l.block.type == Material.NETHER_PORTAL || l_xl.block
配置中可设定在每次开服时,服务器加载完毕后自动检测设定的gamerule是否为设定的值,若不是,则设为设定值。配置文件参考:
gamerules:
keepInventory:
value: true
worlds: *
randomTickSpeed:
value: 20
worlds: world, world_the_end
我: 可能是版本迭代的时候,一开始没加Multiverse-Core,就是全局的gamerule死亡不掉了;后来加了多世界插件,多世界插件不知道为什么改动了原本的gamerule,太匆忙没发现,忘记对每个世界都设了
哦对了,貌似CoreProtect不支持保存玩家背包,即使掉落物品的数据都只有物品名称,连个附魔都不显示
玩家: 你 吗?
需要检测服务器是否安装了Multiverse-Core。若有,则用其API对gamerule进行设置;若无,则用Spigot提供的API进行全局gamerule设置。
Use equals() to compare strings instead of '==' or '!='
if (args[0] == "time") {
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.