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

FreeForAll MiniGame
version 2.0.0
Approved
Direct Download How to install?
Switch version
970 Downloads / 3214 Total
8 Reviews
Plugin Description §

Free For All

(FFA, or Free for All) is a survival and fighting game where the game begins and you have to fight to survive.

Dependencies

How to create an arena

  • Teleport to the world who need to make an arena in it.
  • First, type /ffa create "your arena name" to create the arena.
  • Now go to the arena lobby and type /ffa setlobby to set it.
  • Okay, now go to the respawn position and type /ffa setrespawn that will return to it after death (you can turn it on or off from the config).
  • Use /ffa reload to load the arena.
  • Great, you are now ready to play. Type /ffa join "your arena name." enjoy. If you want to leave the game, type `/ffa quit'.

the configure

  • Formats

  • {PLAYER} : to get the player's name
  • {ARENA} or {GAME} : to get the arena name
  • & : same as §
  • {WORLD} : to get the arena's world name
  • {PLAYERS} : to get arena players count
  • {TIME} : to get player protected time left
  • General

  • scoreboardIp : You can set your server IP to show it on the game scoreboard.
  • banned-commands: You can add the commands you want banned in the game.
  • death-respawn-inMap : That will return the player to the respawn position after death; you can set it to true or false.
  • join-and-respawn-protected : that will protect the player for 3 seconds after joining and respawning.
  • protected-time : to edit the protected time.
  • protected-message : to edit protect message.
  • death-attack-message : Here, you can set the death message when killed by someone.
  • death-void-message : and here you can set the death message when killed by void.
  • join-message : to edit player join message.
  • leave-message : to edit player leave message
  • kills-messages : To add or remove kill messages, this message will be sent to the player every 5 kills automatically.
  • scoreboard-title : to edit the scoreboard title name.
  • provider : Currently, it's supported sqlite3 only; do not change it.
  • database : Do not change anything.
  • kits : You can edit the default kit right now, for example:
kits:
  default:
    slot-0:
      id: iron_sword
      count: 1
      enchants: []
    slot-1:
      id: golden_apple
      count: 5
      enchants: []
    slot-2:
      id: bow
      count: 1
      enchants: []
    slot-3:
      id: arrow
      count: 15
      enchants: []
    helmet:
      id: iron_helmet
      enchants: []
    chestplate:
      id: iron_chestplate
      enchants:
        id-0:
          level: 2
    leggings:
      id: iron_leggings
      enchants: []
    boots:
      id: iron_boots
      enchants: []

Commands

Command Description Permission
/ffa join <ArenaName:optional> To join a specific or random arena No permission
/ffa quit To leave the arena No permission
/ffa help To see the command list ffa.command.admin
/ffa create To create a new arena ffa.command.admin
/ffa remove To delete a specific arena ffa.command.admin
/ffa setlobby To set the lobby position in the arena ffa.command.admin
/ffa setrespawn To set the respawn position in the arena ffa.command.admin
/ffa reload re-loaded the kits and arenas ffa.command.admin
/ffa list To see the arenas list ffa.command.admin

API

As of v2.0.0, all the API functions have moved to API.

use Laith98Dev\FFA\API;
use Laith98Dev\FFA\utils\ClosureResult;

// add kills to the player
API::addKill($PlayerOrPlayerName, $amount, function (ClosureResult $result){
    if($result->getStatus() == ClosureResult::STATE_SUCCESS){
        echo "Added `$amount` kills to the player successfully." . PHP_EOL;
    } else {
        echo "Failed to add kills to the player; reason: " . $result->getValue() . PHP_EOL;
    }
});

// add deaths to player
API::addDeath($PlayerOrPlayerName, $amount, function (ClosureResult $result){
    if($result->getStatus() == ClosureResult::STATE_SUCCESS){
        echo "Added `$amount` deaths to the player successfully." . PHP_EOL;
    } else {
        echo "Failed to add deaths to the player; reason: " . $result->getValue() . PHP_EOL;
    }
});

// get player kills
API::getKills($PlayerOrPlayerName, function (ClosureResult $result){
    if($result->getStatus() == ClosureResult::STATE_SUCCESS){
        echo "Player kills is " . $result->getValue() . PHP_EOL;
    } else {
        echo "Failed to get player kills; reason: " . $result->getValue() . PHP_EOL;
    }
});

// get player deaths
API::getDeaths($PlayerOrPlayerName, function (ClosureResult $result){
    if($result->getStatus() == ClosureResult::STATE_SUCCESS){
        echo "Player deaths is " . $result->getValue() . PHP_EOL;
    } else {
        echo "Failed to get player deaths; reason: " . $result->getValue() . PHP_EOL;
    }
});

// Check if an arena exists
API::isValidArena($arena_name, function (ClosureResult $result){
    if($result->getValue()){
        echo "Arena exists" . PHP_EOL;
    } else {
        echo "Arena doesn't exist." . PHP_EOL;
    }
});

Other

  • tutorial
  • Donate
What's new §
  • Add support for PM5.
  • Improve the plugin.
  • Depend on the BanCommands plugin to ban in-game commands.
  • Create a separate class for API.
  • A protected player can't damage players and can't get damaged.
  • Fixed some bugs
  • Custom default kit
  • Custom protected time & message
  • Kill messages send every 5 kills
  • SQLite3 Support
  • Custom join & leave message
  • Custom scoreboard title
  • Custom respawn title
  • Reload command
  • Fixed arena not exist, if arena name not same world name
  • Fixed teleport another world and still in-game
  • Added banned commands in-game

DrxyYT
using v2.0.0
02 Jul 24
Is there a way to tp a player to a different world? if you have made different worlds?
zenji440
Outdated
using v1.0.3
26 Apr 23
Effect Not use
Laith98Dev
Staff
21 Jan 24
Please open an issue on github
Mohammed123ss
Outdated
using v1.0.1
20 May 22
ليث فيه مشكله اتوقع في بلوقن من اضرب نفسي بالBow يصير Server Closed
Laith98Dev
Staff
21 Jan 24
Please open an issue on github
cuzimrealy
Outdated
using v1.0.1
04 May 22
VERY VERY AWESOME MORE MORE PLEASE KITCHUB
Laith98Dev
Staff
05 May 22
Thanks ;D
RazzyGP
Outdated
using v1.0.1
05 Apr 22
A fantastic plugin, very good and easy to use, to improve the plugin, could add SQLite to store player information, this would improve plugin optimization
Laith98Dev
Staff
05 May 22
Thanks for your suggestion
operebot
Outdated
using v1.0.1
19 Feb 22
I can't create a game, because when I use /ffa setlobby after i created the arena it says: "Arena does not exist, try /ffa create!"
Laith98Dev
Staff
05 May 22
Already fixed
Pinkglitter2216
Outdated
using v1.0.1
13 Feb 22
Thanks for this great plugin!
Laith98Dev
Staff
05 Jun 22
Wlc :D
Tuvqlu
Outdated
using v1.0.1
06 Feb 22
Expand the config file to edit starting kit, and to give kit at a kill
Laith98Dev
Staff
12 Feb 22
Thanks for your suggestion

Reply to review by :

/ 5
Supported API versions
5.0.0
->
5.16.0
Dependencies
BanCommands 2.0.0
Required
View Plugin
Producers §
  • Collaborators:
    • @Laith98Dev
License §
Categories:
Minigame
General
Fun
Permissions
Other files
Permissions
Commands

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

/ 5
Loading...