Giter Club home page Giter Club logo

hungergames's Introduction

HungerGames

Hunger Games plugin for Pocketmine-MP

PocketMine-MP Plugin HungerGames Author: TuffDev

General Description: This is a Survival Games mini-game plugin to be used for PocketMine servers. The Survival Games mini-game runs as a follows:

  • Players can run the command /spawnmatch to join an open match, or they can tap a command block or Human Slappable statue (requires edited Slappable plugin). When the command is issued, the player is warped to a spawnpoint that is preset by the owner. Once the arena is full to capacity, a countdown begins. At the completion of the countdown, all the chests that are set to be resettable are filled with items, and the match begins. Currently there is no immunity at the beginning of the match, so players who dash for the center of the map (usually where a large stash of chests is) will participate in a bit of a bloodbath, as per the fictional Hunger Games.

  • Players can PvP and attempt to survive as they explore the map and find more chests, if a player is killed, they are put in Spectator mode until the end of the match.

  • At the end of the match, winners are all the remaining survivors, all winners will be commended for their fight, and will be sent back to the server's lobby.

Commands:

  • /newarena : This command creates a new arena which will be saved to the config as its ID. The 'capacity' parameter sets the capacity of the arena.

  • /addlobby: This command sets the lobby spawn of the server to wherever the user is standing when the command is issued.

  • /setchest: After issuing this command, the user can then place a chest that will be resettable. All chests placed after issuing this command become resettable and will be reset during the matches.

  • /arenaspawn : This command will add a spawnpoint to the specified arena.

  • /spawnmatch: This command will teleport the issuer to an open match.

Config:

Most of the config is generated by commands, edit it only if you know what you're doing OR if you are adding chest items. Using the config file, you can add items that will be randomly selected to be placed in chests periodically. You can do this by finding the “chestitems:” category, and then adding the NUMBER ID of each item below it like this:

chestitems:

  • 267
  • 298
  • 299

hungergames's People

Contributors

tuffdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hungergames's Issues

/spawnmatch doesn't work

I really like this plugin; however the /spawnmatch command does not work and says: Unknow command.

Bugs and requests!

I really enjoyed this plugin!

In recent days I have tested your plugin on my server, but I found some bugs, here they are:

~ >> # The command "/setchest" does not work!
~ >> # When I kill all opponents, the game does not end, it continues to run until the end of the game time.
~ >> # The match is not able to finish! The countdown to match end never stops!

Here is the log:
[Server] [10:09:15] critical> Could not execute task HungerGames\Model\MatchEndTask: Invalid argument supplied for foreach()
[Server] [10:09:15] warning> RuntimeException: "Invalid argument supplied for foreach()" (E_WARNING) in "/HungerGames-0.1-alpha/src/HungerGames/ArenaManager" at line 349
[Server] [10:10:39] system>
[Server] [10:10:58] critical> Could not execute task HungerGames\Model\ChestRefreshTask: Invalid argument supplied for foreach()
[Server] [10:10:58] warning> RuntimeException: "Invalid argument supplied for foreach()" (E_WARNING) in "/HungerGames-0.1-alpha/src/HungerGames/ArenaManager" at line 335

Requests:

  • Please add more configurable features to the file "config.yml"

Your plugin is amazing! I hope you can update it, will make it more interesting!
Sincerely, thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.