Skip to content
This repository was archived by the owner on Oct 21, 2018. It is now read-only.
Open

Test #37

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .poggit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
--- # Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/ZPlayzMCPE/VoteReward
branches:
- master
projects:
VoteReward-Prismarine:
path: ""
...
4 changes: 2 additions & 2 deletions plugin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: VoteReward
main: LDX\VoteReward\Main
version: 3.0.2
api: [1.12.0, 2.0.0]
api: [1.12.0, 2.0.0, 3.0.0, 3.0.1]
author: LDX
website: "http://votereward.mcpe.me"
load: POSTWORLD
Expand All @@ -24,4 +24,4 @@ permissions:
description: "Allows access to using the vote command."
votereward.command.reload:
default: op
description: "Allows access to the vote reload subcommand."
description: "Allows access to the vote reload subcommand."
4 changes: 2 additions & 2 deletions src/LDX/VoteReward/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function reload() {
$this->debug = isset($config["Debug"]) && $config["Debug"] === true ? true : false;
}

public function onCommand(CommandSender $sender, Command $command, $label, array $args) {
public function onCommand(CommandSender $sender, Command $command, string $label, array $args) : bool {
switch(strtolower($command->getName())) {
case "vote":
if(isset($args[0]) && strtolower($args[0]) == "reload") {
Expand Down Expand Up @@ -155,4 +155,4 @@ public function rewardPlayer($player, $multiplier) {
$player->sendMessage("[VoteReward] You voted on $multiplier server list" . ($multiplier == 1 ? "" : "s") . "!");
}

}
}