Git Product home page Git Product logo

tntrun's Introduction

TNTRun

TNTRun for PMMP using gameapi

Download

Grab a phar from Poggit

Gameplay

  • Join a game
  • Run!
  • Any block below the player will be removed

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/TNTRun/worlds and replace your 'tntrun' data with your worlds data (you should keep the level.dat though)

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

/tntrun 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 /tntrun 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: [TNTRun]
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
/tntrun,/tntrun setup Main command for setup tntrun.command,tntrun.command.setup,
/tntrun leave Used to leave a game tntrun.command.leave
/tntrun forcestart Force the start of an arena you are in tntrun.command.forcestart
/tntrun stop Stops the current game tntrun.command.stop
/tntrun endsetup Stops the setup and saves the world tntrun.command.endsetup
/tntrun info Information about the plugin tntrun.command.information
/tntrun status Status, TPS, Player count/percentage of TNTRun arenas tntrun.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).

tntrun's People

Contributors

inxomnyaa avatar poggit-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

xzeromcpe

tntrun's Issues

Error when creating arena on existing world

PocketMine-MP 3.12.0 - Minecraft : Pe v1.14

How to reproduce :

  • /tntrun
  • Select new arena
  • Select existing world
[20:34:00] [Server thread/CRITICAL]: RuntimeException: "Cannot set tag at "generatorOptions": tried to overwrite pocketmine\nbt\tag\CompoundTag with pocketmine\nbt\tag\StringTag" (EXCEPTION) in "vendor/pocketmine/nbt/src/tag/CompoundTag" at line 143
[20:34:00] [Server thread/DEBUG]: #0 vendor/pocketmine/nbt/src/tag/CompoundTag(375): pocketmine\nbt\tag\CompoundTag->setTag(object pocketmine\nbt\tag\StringTag, boolean )
[20:34:00] [Server thread/DEBUG]: #1 src/pocketmine/level/format/io/BaseLevelProvider(74): pocketmine\nbt\tag\CompoundTag->setString(string[16] generatorOptions, string[0] )
[20:34:00] [Server thread/DEBUG]: #2 src/pocketmine/level/format/io/BaseLevelProvider(52): pocketmine\level\format\io\BaseLevelProvider->fixLevelData()
[20:34:00] [Server thread/DEBUG]: #3 plugins/TNTRun_dev-3.phar/src/xenialdan/TNTRun/libs/xenialdan/gameapi/API(54): pocketmine\level\format\io\BaseLevelProvider->__construct(string[65] C:\Users\Acer-Maison\Documents\PocketMine-MP 4.0\worlds/parkour4\)
[20:34:00] [Server thread/DEBUG]: #4 plugins/TNTRun_dev-3.phar/src/xenialdan/TNTRun/Loader(166): xenialdan\TNTRun\libs\xenialdan\gameapi\API::getAllWorlds()
[20:34:00] [Server thread/DEBUG]: #5 plugins/TNTRun_dev-3.phar/src/xenialdan/TNTRun/libs/xenialdan/customui/windows/SimpleForm(117): xenialdan\TNTRun\Loader->xenialdan\TNTRun\{closure}(object pocketmine\Player, string[14] Existing world)
[20:34:00] [Server thread/DEBUG]: #6 src/pocketmine/Player(3442): xenialdan\TNTRun\libs\xenialdan\customui\windows\SimpleForm->handleResponse(object pocketmine\Player, integer 1)
[20:34:00] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(264): pocketmine\Player->onFormSubmit(integer 1, integer 1)
[20:34:00] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/ModalFormResponsePacket(49): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket)
[20:34:00] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[20:34:00] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/protocol/BatchPacket(126): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket)
[20:34:00] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[20:34:00] [Server thread/DEBUG]: #12 src/pocketmine/Player(3118): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[20:34:00] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[20:34:00] [Server thread/DEBUG]: #14 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[15] 127.0.0.1 52508, object raklib\protocol\EncapsulatedPacket, integer 0)
[20:34:00] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[20:34:00] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[20:34:00] [Server thread/DEBUG]: #17 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
[20:34:00] [Server thread/DEBUG]: #18 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
[20:34:00] [Server thread/DEBUG]: #19 src/pocketmine/Server(2146): pocketmine\snooze\SleeperHandler->sleepUntil(double 1589571240.8556)
[20:34:00] [Server thread/DEBUG]: #20 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
[20:34:00] [Server thread/DEBUG]: #21 src/pocketmine/Server(1584): pocketmine\Server->start()
[20:34:00] [Server thread/DEBUG]: #22 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[49] C:\Users\Acer-Maison\Documents\PocketMine-MP 4.0\, string[57] C:\Users\Acer-Maison\Documents\PocketMine-MP 4.0\plugins\)
[20:34:00] [Server thread/DEBUG]: #23 src/pocketmine/PocketMine(296): pocketmine\server()
[20:34:00] [Server thread/DEBUG]: #24 (11): require(string[104] phar://C:/Users/Acer-Maison/Documents/PocketMine-MP 4.0/PocketMine-MP.phar/src/p)

Thanks

Crash on join

When I taps to sign server crashes with error Internal server error, please fix it

VoidDeath

Whenever someone falls in the void on my server in the chat it says "KimeraCraft" i removed it from happening but may you please fix it for other people who use the plugin

gamereward

i cant seem to figure out how to setup gamereward.
I want to make it so that whenever someone wins a game
they get $1
but in the config nothing pops up when i start the server

Dont work (not Pk 4.0.0)

[10:04:05] [Server thread/CRITICAL]: Error: "Class 'xenialdan\customui\windows\SimpleForm' not found" (EXCEPTION) in "plugins/TNTRun-master/src/xenialdan/TNTRun/Loader" at line 149
[10:04:05] [Server thread/CRITICAL]: #0 plugins/TNTRun-master/src/xenialdan/TNTRun/commands/TNTRunCommand(49): xenialdan\TNTRun\Loader->setupArena(object pocketmine\Player)
[10:04:05] [Server thread/CRITICAL]: #1 src/pocketmine/command/SimpleCommandMap(248): xenialdan\TNTRun\commands\TNTRunCommand->execute(object pocketmine\Player, string[6] tntrun, array[0])
[10:04:05] [Server thread/CRITICAL]: #2 src/pocketmine/Server(1811): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\Player, string[6] tntrun)
[10:04:05] [Server thread/CRITICAL]: #3 src/pocketmine/Player(2311): pocketmine\Server->dispatchCommand(object pocketmine\Player, string[6] tntrun)
[10:04:05] [Server thread/CRITICAL]: #4 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(244): pocketmine\Player->chat(string[7] /tntrun)
[10:04:05] [Server thread/CRITICAL]: #5 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket)
[10:04:05] [Server thread/CRITICAL]: #6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[10:04:05] [Server thread/CRITICAL]: #7 src/pocketmine/network/mcpe/protocol/BatchPacket(127): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket)
[10:04:05] [Server thread/CRITICAL]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[10:04:05] [Server thread/CRITICAL]: #9 src/pocketmine/Player(3250): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[10:04:05] [Server thread/CRITICAL]: #10 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[10:04:05] [Server thread/CRITICAL]: #11 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[17] 81.0.38.151 42897, object raklib\protocol\EncapsulatedPacket, integer 0)
[10:04:05] [Server thread/CRITICAL]: #12 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[10:04:05] [Server thread/CRITICAL]: #13 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[10:04:05] [Server thread/CRITICAL]: #14 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}()
[10:04:05] [Server thread/CRITICAL]: #15 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
[10:04:05] [Server thread/CRITICAL]: #16 src/pocketmine/Server(2157): pocketmine\snooze\SleeperHandler->sleepUntil(double 1599041045.7015)
[10:04:05] [Server thread/CRITICAL]: #17 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
[10:04:05] [Server thread/CRITICAL]: #18 src/pocketmine/Server(1588): pocketmine\Server->start()
[10:04:05] [Server thread/CRITICAL]: #19 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[10:04:05] [Server thread/CRITICAL]: #20 src/pocketmine/PocketMine(304): pocketmine\server()
[10:04:05] [Server thread/CRITICAL]: #21 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

And

[10:04:11] [Server thread/CRITICAL]: InvalidArgumentException: "Unknown argument supplied: create" (EXCEPTION) in "plugins/TNTRun-master/src/xenialdan/TNTRun/commands/TNTRunCommand" at line 110
[10:04:11] [Server thread/CRITICAL]: #0 src/pocketmine/command/SimpleCommandMap(248): xenialdan\TNTRun\commands\TNTRunCommand->execute(object pocketmine\Player, string[6] tntrun, array[1])
[10:04:11] [Server thread/CRITICAL]: #1 src/pocketmine/Server(1811): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\Player, string[13] tntrun create)
[10:04:11] [Server thread/CRITICAL]: #2 src/pocketmine/Player(2311): pocketmine\Server->dispatchCommand(object pocketmine\Player, string[13] tntrun create)
[10:04:11] [Server thread/CRITICAL]: #3 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(244): pocketmine\Player->chat(string[14] /tntrun create)
[10:04:11] [Server thread/CRITICAL]: #4 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket)
[10:04:11] [Server thread/CRITICAL]: #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[10:04:11] [Server thread/CRITICAL]: #6 src/pocketmine/network/mcpe/protocol/BatchPacket(127): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket)
[10:04:11] [Server thread/CRITICAL]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[10:04:11] [Server thread/CRITICAL]: #8 src/pocketmine/Player(3250): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[10:04:11] [Server thread/CRITICAL]: #9 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[10:04:11] [Server thread/CRITICAL]: #10 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[17] 81.0.38.151 42897, object raklib\protocol\EncapsulatedPacket, integer 0)
[10:04:11] [Server thread/CRITICAL]: #11 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[10:04:11] [Server thread/CRITICAL]: #12 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[10:04:11] [Server thread/CRITICAL]: #13 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}()
[10:04:11] [Server thread/CRITICAL]: #14 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
[10:04:11] [Server thread/CRITICAL]: #15 src/pocketmine/Server(2157): pocketmine\snooze\SleeperHandler->sleepUntil(double 1599041051.8515)
[10:04:11] [Server thread/CRITICAL]: #16 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
[10:04:11] [Server thread/CRITICAL]: #17 src/pocketmine/Server(1588): pocketmine\Server->start()
[10:04:11] [Server thread/CRITICAL]: #18 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[10:04:11] [Server thread/CRITICAL]: #19 src/pocketmine/PocketMine(304): pocketmine\server()
[10:04:11] [Server thread/CRITICAL]: #20 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

TNT Not Falling Bug

Hello! I have tried the first version but when you stand on edges, TNT does not fall, so I was wondering if the newest version have already fixed that bug?

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.