Skip to content

Latest commit

 

History

History
103 lines (67 loc) · 3.8 KB

faq.md

File metadata and controls

103 lines (67 loc) · 3.8 KB

Frequently Asked Questions

How I can create a spleef arena?

When you create a minigame with PVPArena, you have to ask yourself "How will work score calculation?". In spleef case, when a player dies, he looses the match.

So you should use the playerLives goal (enabled by default). Build you arena and configure it following this guide.

You can restore you battlefield (snow ground) using BlockRestore or Worldedit module. Please check modules documentation to learn more.


Can my players use their own inventories?

Yes it is possible, just pass playerclasses parameter to true. You can do this directly by editing your config file or use the /pa [arena] set command.

Then you can propose player inventories as a class: corresponding class name is custom. If you want this class by default, just set autoclass parameter to custom.

Finally, if you want to return player inventory as it was before the beginning of the match, pass customReturnsGear to true.


How can I use arena commands from a command block?

Maybe you will wish to use buttons, pressure plates and command blocks to allowing players to choose their class, get ready or leave the arena.

Most of PvPArena commands must be types by players (in order to keep context). So if you want to use plugins commands in a command block, you will have to use a sudo plugin. Utility plugins like EssentialsX already include this.

"Sudo" make possible to type a command as if player typed it. For instance, if you a to create a command block to leave an arena, use the command sudo @p pa leave.

Technical precision:
Since Minecraft 1.13, spigot based servers does no longer support command selectors (like @p). If you want to use it you will have to use a plugin like CommandHook.


How to create a join sign for an arena?

Create a simple sign with the following pattern:

[arena]
yourArenaName
teamName

You can keep the third line empty to join a random team. The fourth line can still be empty or filled with a custom message.


How to regen my battlefield after a game?

Currently, there are two ways to regen battlefield after a match. You can use either BlockRestore module or WorldEdit module.

Here is a quick list of precisions to support your choice:

  • BlockRestore:
    • Reset only blocks broken by players
    • Asynchronous
    • Perfect for arena where few blocks are destroyed (like spleef)
  • WorldEdit:
    • Needs WorldEdit plugin (obviously)
    • Regenerates everything
    • Can regen large areas but is synchronous

Check dedicated documentation pages to get more information.


Is there a way to automatically put a player into spectator mode on death instead of them having to leave the match and then rejoin as a spectator?

Just set tp.death to spectator in your arena config file (or with /pa [arena] set command).


Is it possible to automatically affect a class to all players or to a specific team?

Yes it is. In your arena config, you can set the autoclass the setting according to your needs:

  • Use None if you don't want to use the auto-class mechanism. (default option)
  • Write a simple class name, to affect the class to everyone.
    Ex: autoclass: pyro
  • Use the following pattern to affect a class to each team:
    autoclass: teamName1:classNameA;teamName2:classNameB

NB: For the 3rd option, you have to specify a class for each team. There is no default choice.


Still have questions?

Don't hesitate to get in touch with us 😉