Skip to content

Commit

Permalink
PM5!
Browse files Browse the repository at this point in the history
  • Loading branch information
nmtho committed Jun 6, 2023
1 parent 55ae3c1 commit d37692e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .poggit.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
--- # Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/KygekTeam/KygekEasyGamemode
build-by-default: true
branches:
- master
- main
- pm4
projects:
KygekEasyGamemode:
path: ""
libs:
- src: thebigcrafter/ktpmpl-cfs/ktpmpl-cfs
version: ^4.0.0
- src: thebigcrafter/Hydrogen/Hydrogen
version: ^1.0.0
...
4 changes: 2 additions & 2 deletions plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

name: KygekEasyGamemode
main: Kygekraqmak\KygekEasyGamemode\Main
api: 4.0.0
version: 2.2.0
api: 5.0.0
version: 3.0.0
authors: [Kygekraqmak, KygekTeam]
description: Quickly change between gamemodes
website: https://github.com/KygekTeam/KygekEasyGamemode
Expand Down
10 changes: 2 additions & 8 deletions src/Kygekraqmak/KygekEasyGamemode/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,20 @@

namespace Kygekraqmak\KygekEasyGamemode;

use KygekTeam\KtpmplCfs\KtpmplCfs;
use pocketmine\player\GameMode;
use pocketmine\player\Player;
use pocketmine\plugin\PluginBase;
use pocketmine\utils\TextFormat as TF;
use pocketmine\command\Command;
use pocketmine\command\CommandSender;
use thebigcrafter\Hydrogen\Hydrogen;

class Main extends PluginBase {

private const IS_DEV = false;
private const PREFIX = TF::GREEN . "[KygekEasyGamemode] ";

protected function onEnable() : void {
/** @phpstan-ignore-next-line */
if (self::IS_DEV) {
(new KtpmplCfs($this))->warnDevelopmentVersion();
}

$this->saveDefaultConfig();
Hydrogen::checkForUpdates($this);
}

public function onCommand(CommandSender $sender, Command $command, string $label, array $args) : bool {
Expand Down

0 comments on commit d37692e

Please sign in to comment.