mirror of
https://github.com/ZeroDream-CN/PHPMC7
synced 2026-05-17 02:54:03 +08:00
v7.3.3156 更新发布
增加插件系统 增加事件管理系统 修复错误页面的标题问题
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"main":"Register",
|
||||
"package":"com.phpmc.register",
|
||||
"author":"Akkariin",
|
||||
"website":"https://www.akkariin.com/"
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
class Register {
|
||||
|
||||
public static function onload() {
|
||||
global $Loader;
|
||||
$Loader->Event->registerClass("defaultActionEvent", new Register()); // 注册 defaultActionEvent 事件
|
||||
}
|
||||
|
||||
public function defaultActionEvent($test) {
|
||||
// print_r($test); // 输出 GET 参数数组
|
||||
return false; // 不取消事件
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user