Code Monkey home page Code Monkey logo

starlinutils's People

Contributors

katorly avatar

Stargazers

 avatar

Watchers

 avatar

starlinutils's Issues

[Plan] 玩家地标

Suggestion

Tasks

rate功能、记录访问量和私有共享地标功能就算了,想要用这些复杂功能的话可以用 PlayerWarp 插件

Reason

Other

No response

[Plan] 随机传送

Suggestion

Tasks

Reason

Other

No response

[Plan] 聊天 辅助功能

Suggestion

计划内

Reason

Other

No response

[Plan] ban 封禁功能

Suggestion

计划内

Reason

不再使用bukkit提供的原版封禁方法,避免正版改ID后卷土重来

Other

  • 为投票封禁提供GUI
  • 投票解封(不推荐,不然可能可以把“坏人”用小号投票刷成解封)

[Plan] Motd 辅助功能

Suggestion

计划内

Reason

服主无需再安装额外的motd插件

Other

计划外

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.

Codacy detected an issue:

Message: 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.

Occurred on:

Currently on:

[Plan] alpha 版本中其它小功能

Suggestion

计划内

Reason

Other

No response

[Plan] initial版本中其它零碎的小功能

Suggestion

计划内

Reason

Other

No response

[Plan] GUI 商店

Suggestion

计划内

  • 价格浮动的商店(请使用其它插件实现此功能)
  • 拍卖行(请使用其它插件实现此功能)

Reason

Other

No response

[计划] 模块:PlayTime

Suggestion

  • 玩家进入服务器时记录当前 tick
  • 玩家退出服务器时根据当前 tick 减去进服时的 tick 计算出玩家本次游玩的时间(精确到秒)
  • 年.月记录玩家游玩时间
  • 记录玩家第一次进入服务器的时间
  • 记录每个月有哪些玩家进服游玩
  • 使用 UUID + 玩家名 的形式储存
  • 使用 MySQL 对数据进行存储

高级功能(不一定有精力和时间去实现):

  • 支持使用 MongoDB 对数据进行存储,提升性能 Taboolib 移除了相关模块,且 Jetbrains Exposed 也未提供相关支持

Reason

@Hailaylin 要求

Other

附赠 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;

Future Plans - 2022.08

  • Add hover text to /help
  • Restore monthly.yml & timedata.yml in database form instead of yaml files

More expected functions can be promoted just by commenting under this issue. @Hailaylin

[Plan] 聊天过滤

Suggestion

计划内

Reason

轻量的脏话屏蔽功能

Other

对于每个玩家:

  • 可自定义想要过滤哪些词,这些词不会在该玩家的聊天中显示,但其他未选择过滤该词的玩家正常
    可自定义想要看到哪些过滤词 算了

[Plan] 自定义合成

Suggestion

计划内

Reason

Other

No response

[计划] 优化 飞行权限组管理

Suggestion

  • 执行飞行权限组管理相关的指令时检测 fly 权限组是否存在,不存在则自动创建并加入预设权限
  • 支持通过指令快速向 fly 权限组加入权限
  • 引导玩家自主在群里向管理申请飞行权限组

以上使用:Luckperms 权限组管理插件

Reason

更新迭代服务器的时候可用

Other

No response

[Plan] 礼包功能

Suggestion

计划内

Reason

Other

No response

Total play time format error

Bug Information

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

  • Operating system and its version: Windows Server 2012
  • Programming language and its version: Minecraft Paper-1.18.1-82
  • Dependencies and their versions: none

Steps to Reproduce

  1. Simply make the plugin counts player's total play time.
  2. See the config after several minutes.

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

Agreement

  • I have read the Guidelines above and confirm I am following them with this report.

[计划] 模块:AutoSet

Suggestion

一键自动为服务器设置预设设置:

  • 死亡不掉落
  • 使用 Essentials 设置 阻止爆炸、苦力怕、凋零、末影龙等破坏地形
  • Luckperms 权限预设
  • 待添加

Reason

适用于版本更新迭代时对服务器的重新配置。
可自动设置每次更新时都需要重复进行的设置。

Other

可以不需要该模块

[Plan] 简易自定义 GUI

Suggestion

Tasks

Invero 已经够牛了,我觉得这个计划可以不要

Reason

Other

No response

[Plan] 玩家进服 相关功能

Suggestion

计划内

Reason

Other

更多相关功能待补充

[Plan] 保护

Suggestion

计划内

其它保护就不添加了,如有需要可以使用worldguard之类的插件

Reason

Other

No response

This condition is too complex (7). Defined complexity threshold for conditions is set to '4'

Codacy detected an issue:

Message: This condition is too complex (7). Defined complexity threshold for conditions is set to '4'

Occurred on:

Currently on:

[计划] 模块:GameruleLock

Suggestion

配置中可设定在每次开服时,服务器加载完毕后自动检测设定的gamerule是否为设定的值,若不是,则设为设定值。配置文件参考:

gamerules:
  keepInventory:
    value: true
    worlds: *
  randomTickSpeed:
    value: 20
    worlds: world, world_the_end

Reason

来自某玩家:

我: 可能是版本迭代的时候,一开始没加Multiverse-Core,就是全局的gamerule死亡不掉了;后来加了多世界插件,多世界插件不知道为什么改动了原本的gamerule,太匆忙没发现,忘记对每个世界都设了
哦对了,貌似CoreProtect不支持保存玩家背包,即使掉落物品的数据都只有物品名称,连个附魔都不显示

玩家: 你 吗?

Other

需要检测服务器是否安装了Multiverse-Core。若有,则用其API对gamerule进行设置;若无,则用Spigot提供的API进行全局gamerule设置。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.