Code Monkey home page Code Monkey logo

infectedgm's Introduction

InfectedGM

InfectedGM for PMMP using gameapi

A virus is spreading. Try not to get infected! Run for your life!

Download

Grab a phar from Poggit

Gameplay

  • Inspired by Hypixel, you can read the gameplay here: https://hypixel.net/threads/new-gamemode-minecraft-infected.334387/
  • At start, a random player is chosen to be the first infected person
  • Infected players have to haunt down other players
  • When all players got infected, the game ends
  • To make locating players and infected players easier, ambient sounds randomly play. Infected players have a zombie skin (can be modified, change the infected_skin.png file under the plugin data)

Setup

Please use the plugin on a seperate server to your main server (lobby etc) This is because the plugin modifies gameplay alot. You can use the /transferserver command to send players to the server.

Setup is really easy. The world can be automatically generated. To replace the map with another map, go to /plugin_data/InfectedGM/worlds and replace your 'infectedgm' data with your worlds data (you should keep the level.dat though)

There is a setup command, that makes your life substantially easier

/infectedgm opens an UI with settings and options to create new worlds/arenas

The generated world is a void world, i suggest to use a world editor like MagicWE2 to place blocks.

Remember to use /setworldspawn in your map!

When you are done with building and setting the world spawn in a map, use /infectedgm endsetup! If you don't, the world won't get saved!

Joining is done by using signs, but you can add any event for joining that you'd like - in JoinEventListener.php

Sign setup:

L1: [InfectedGM]
L2: mapname
L3: 
L4: 

Then, click on it, and you are set.

Only TNT blocks will work.

Players will not be damaged and can not build in the world, but there are setting files if you really need to change anything

Setup rewards

Use gamerewards to give the winner rewards and execute commands.

There is also a GameWinEvent getting called containing the winning players

Commands

Command Description Permission
/infectedgm,/infectedgm setup Main command for setup infectedgm.command,infectedgm.command.setup,
/infectedgm leave Used to leave a game infectedgm.command.leave
/infectedgm forcestart Force the start of an arena you are in infectedgm.command.forcestart
/infectedgm stop Stops the current game infectedgm.command.stop
/infectedgm endsetup Stops the setup and saves the world infectedgm.command.endsetup
/infectedgm info Information about the plugin infectedgm.command.information
/infectedgm status Status, TPS, Player count/percentage of InfectedGM arenas infectedgm.command.status

From source

You need to set up DEVirion and install the gameapi virion properly if you are running from source! (turn over to poggit for a compiled phar) Please search up how this is done yourself!

Disclaimer

You can modify the code by your needs and wills (see LICENSE).

infectedgm's People

Contributors

inxomnyaa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

pahka1994

infectedgm's Issues

Bug

if I infect other people it will crash
Screenshot_20200430_060338
Screenshot_20200430_060344
Screenshot_20200430_060348

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.