Skip to content

Instantly share code, notes, and snippets.

View PJZ9n's full-sized avatar
🏠
Working from home

PJZ9n PJZ9n

🏠
Working from home
View GitHub Profile
<?php
/*
* @name MyTestPlugin
* @main PJZ9n\MyTestPlugin\Main
* @version 1.0.0
* @api 3
* @description My Test Plugin
* @author PJZ9n
*/
<?php
$errors = [];
if (!isset($_POST["email"])) {
$errors[] = "メールアドレス未送信";
} else {
$email = $_POST["email"];
}
if (!isset($_POST["userid"])) {
@PJZ9n
PJZ9n / matrix.ino
Created June 7, 2019 19:10
キーマトリクスの処理
/**
* キーマトリクスを使ってみる 2019.06.08
*
* 1□2□3□
* 4□5□6□
* 7□8□9□
*
* MEMO: プルアップとプルダウンは異なる
*/
@PJZ9n
PJZ9n / WorldCheck.php
Created June 8, 2019 18:41
Level名とFolder名を表示するツール
<?php
/**
* @name WorldCheck
* @main PJZ9n\WorldCheck\Main
* @version 1.0.0
* @api 3.0.0
* @description World Check Plugin
* @author PJZ9n
*/
<!DOCTYPE html>
<html lang="ja">
<head>
<!-- Required Meta -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Load CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
<?php
/**
* @name PacketShow
* @main PJZ9n\PacketShow\Main
* @version 1.0.0
* @api 3.0.0
* @author PJZ9n
*/
<?php
/**
* @name PacketShow
* @main PJZ9n\PacketShow\Main
* @version 1.0.0
* @api 3.0.0
* @author PJZ9n
*/
<?php
namespace StopMessagePlugin;
//Events
use pocketmine\event\block\BlockBreakEvent;
use pocketmine\event\block\BlockPlaceEvent;
use pocketmine\event\entity\EntityInventoryChangeEvent;
use pocketmine\event\player\PlayerAchievementAwardedEvent;
use pocketmine\event\player\PlayerChatEvent;
<?php
declare(strict_types=1);
/**
* @name PluginC
* @version 1.0.0
* @main PJZ9n\PluginC\Main
* @api 3.0.0
*/
<?php
namespace CmdSignPlugin;
//Events
use pocketmine\event\block\BlockBreakEvent;
use pocketmine\event\block\BlockPlaceEvent;
use pocketmine\event\block\SignChangeEvent;
use pocketmine\event\entity\EntityInventoryChangeEvent;
use pocketmine\event\player\PlayerAchievementAwardedEvent;