By continuing to use this site, you agree to the Terms of Service of this website, including usage of cookies.

OK, Don't show this again

The ultimate starvation game for PocketMine!
version 19.3
Approved
Direct Download How to install?
Switch version
599 Downloads / 1878 Total
12 Reviews
Plugin Description §

HungerGames

=============

A HungerGames plugin for PocketMine-MP developed by xBeastMode

New Features? Yes, of course. You can choose between SkyWars or HungerGames! How? You can make a game with the following command: /hg add

Watch my YouTube video showing bow to setup a game arena: MCPE - HG plugin tutorial updated

When you join a game the plugin will automatically backup the map.

  • Other features: Scripts have been added. I did not make any scripts for it yet, maybe in the future.

How to setup a join sign?

on the first line set the line to "hg" and on the second line set the line to the name of your game. The sign should now refresh automatically and you'll be able to join.

or... join a game by simply typing: /hg join <game>

  • Future updates? I am planning to adding many more features to this plugin, if you wish me to add one, please say it in issues, thank you.

For Devs:

This plugin comes with a script loader api. You can use this to access game functions, like when player joins, quits, wins, etc. You do not need to enable it, as it loads itself.

If you wish to create one here's an example code:

Click here to view example:
//Example script:


<?php
class ExampleScript extends \hungergames\api\scripts\HGAPIScript{
    public function __construct(){
        parent::__construct("Script names here", "Versions here 1.0", "Authors here xBeastMode");
    }
    public function onLoad(){
        $this->sendConsoleMessage("Test script loaded!");
    }
}


//All function from this script api are:

/**
     * Creates script config
     *
     * @param $name
     * @param array $values
     * @return Config
     */
    public void function createConfig($name, array $values)
    /**
     * Gets script config
     *
     * @return Config
     */
    public Config function getConfig()
    /**
     * Gets the name of the script
     *
     * @return string
     */
    public string function getName()
    /**
     * Gets the name of the script
     *
     * @return string
     */
    public string function getVersion()
    /**
     * Gets the author of the script
     *
     * @return string
     */
    public string function getAuthor()
    /**
     * disables script
     */
    public void function setDisabled()
    /**
     * enables script
     */
    public void function setEnabled();
    /**
     * returns whether script is enabled or not
     *
     * @return bool
     */
    public bool function isEnabled()
    /**
     * Sends console message
     *
     * @param $message
     */
    public void function sendConsoleMessage($message)
    /**
     * Called when script is loaded
     */
    public function onLoad(){
    //your code here
    }
    /**
     * called when player joins game
     *
     * @param Player $p
     * @param HungerGames $game
     */
    public function onPlayerJoinGame(Player $p, HungerGames $game){
    //your code here
    }
    /**
     * called when player quits game
     *
     * @param Player $p
     * @param HungerGames $game
     */
    public function onPlayerQuitGame(Player $p, HungerGames $game){
    //your code here
    }
    /**
     * Called when player fails to join full game
     *
     * @param Player $p
     * @param HungerGames $game
     */
    public function gameIsFull(Player $p, HungerGames $game){
    //your code here
    }

    /**
     * Called when player is waiting for players
     *
     * @param array $players
     * @param HungerGames $game
     */
    public function whileWaitingForPlayers(array $players, HungerGames $game){
    //your code here
    }
    /**
     * Called when player is waiting for players
     *
     * @param array $players
     * @param HungerGames $game
     */
    public function whileWaitingToStart(array $players, HungerGames $game){
    //your code here
    }
    /**
     * Called when game starts
     *
     * @param array $players
     * @param HungerGames $game
     */
    public function onGameStart(array $players, HungerGames $game){
    //your code here
    }
    /**
     * Called when death match starts
     *
     * @param array $players
     * @param HungerGames $game
     */
    public function onDeathMatchStart(array $players, HungerGames $game){
    //your code here
    }
    /**
     * Called when players wins a game
     *
     * @param Player $p
     * @param HungerGames $game
     */
    public function onPlayerWinGame(Player $p, HungerGames $game){
    //your code here
    }information

Commands:

  • /hg add : adds a new game

    • OP perm: hg.command.add
  • /hg del : deletes a game

    • OP perm: hg.command.del
  • /hg min : changes the number of minimum players required to start a game

    • OP perm: hg.command.min
  • /hg max : changes number of maximum players that can enter a game

    • OP perm: hg.command.max
  • /hg level : changes level of game where players are gonna go

    • OP perm: hg.command.level
  • /hg ws : sets amount of seconds to wait before game starts

    • OP perm: hg.command.ws
  • /hg gs : sets amount of second to pass before death match starts

    • OP perm: hg.command.gs
  • /hg addslot : adds new slot to game (positions sets where you are standing)

    • OP perm: hg.command.slot.add
  • /hg delslot : deletes slot from game by name

    • OP perm: hg.command.slot.del
  • /hg lobby : sets the lobby position of a game where you're standing

    • OP perm: hg.command.lobby
  • /hg dm : sets the death match position of a game where you're standing

    • OP perm: hg.command.dm
  • /hg leave : leaves game that you are playing

    • OP perm: none
  • /hg join : join a new game

    • OP perm: none
What's new §
  • api update for 3.0.0
  • fix: remove player armor after match
  • updated version
  • Update README.md
  • code cleanup
  • version update and few bug fixes
  • Create ISSUE_TEMPLATE.md
  • Fix map reset, better slot handling
  • Optimizations for skywars mode, fixed the '/hg leave' recursion, plugin optimizations for better performance, clear player inventory when joining game
  • Update README.md
  • fix a script api typo
  • fixed /hg level bug, added option to disable inventory clearing.
  • forgot to remove something
  • update version
  • updated to API 3.0.0-ALPHA10
  • Added /hg join command
  • You no longer have to type "/reload after every change" the plugin handles everything!
  • Map backups are not written asynchronously, meaning the server won't freeze while the plugin is backing up and map or resetting one!

16.2: Fixed a bug from the Msg class where it three and exception: "class "hungergames\lib\utils\Loader not found".

16.3: players were teleported to spawn before death and server froze if player quit while game was ticking.

Fixed a bug from the Msg class where it three and exception: "class "hungergames\lib\utils\Loader not found".

Initial version

Alemiz112
using v19.3
09 Dec 18
Hi, I have problem. Everything work, but game sing not update. Text will not change. It still show: "hg" pvp1" - arena name. Please help me
ElementalMinecraftGaming
using v19.3
04 Dec 18
Absolutely brilliant. My players will love this.
Wolfkid200444
using v19.3
22 Aug 18
I Love it :D
ModdingTwins
using v19.3
10 Aug 18
Well done
monster200014
using v19.2
04 Aug 18
Update to API 3.1.0 please...
Gtafgu
using v19.2
06 Jun 18
The man after the round Still has his armor and Shield where hg and the map is bug no player number
KingRainbow44
using v19.1
12 Jun 18
Can someone help me with this plugin? It keeps giving me this error : "Call to undefined method pocketmine\Server::getScheduler()" (EXCEPTION) in "HungerGames.phar/src/hungergames/Loader" at line 46
Trazader
using v17.1
20 Apr 18
Please update to ALPHA12 please:D
KeremDgGG
using v17.1
10 Mar 18
Update alpha11 plsss
SivannOnlinee
using v17.1
15 Feb 18
Update to ALPHA11 please
llronaldoll
using v16.3
31 Dec 17
Good Pugin but outdated
GoldenTheMaster
using v16.3
01 Nov 17
Needs to be updated. Other than that, Great work!

Reply to review by :

Supported API versions
3.0.0
->
3.5.0
Producers §
  • Contributors:
    • @Haxley
License §
Categories:
Minigame
Fun
World Editing and Management
Miscellaneous
Permissions
Manage worlds
Other files
Permissions
Commands
Edit world
Asynchronous tasks

You can leave one review per plugin release, and delete or update your review at any time

Loading...