Skip to content

Instantly share code, notes, and snippets.

@macalinao
Created March 3, 2014 06:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macalinao/9319695 to your computer and use it in GitHub Desktop.
Save macalinao/9319695 to your computer and use it in GitHub Desktop.

MattUnstuck

This plugin will do several things. But the main picture is a 1v1 arena plugin

There will be a lobby defined by a region flag (/setlobby region name). And within the lobby, you will have certain items signifying what type of fight you can do. (When entering the lobby, your inventory saves and cleares, and is given back to you when you exit the arena). When you right click a player with the designated item you wish to fight them with (stick, blazerod, soup.. etc) it will aware them that you wish to fight them with that fight type. If they click you back with the same item, a duel will be initiated. If they do nothing, nothing will happen. If they click back with a different item, it will aware the player that they wish to do that duel type (just like the first person who clicks them).

When a duel is initiated: It will tele players to designated arenas (ones not in use). If they all are in use, it will warn the player, and tell them that a duel can't be done at this time due to full arenas. If not, it will tele the players to opposite sides of the arena, and equip them with the fight type they are doing. When a player is killed, they will stay in the arena for three seconds before getting tped back to the lobby, and having their inventories cleared.

Other: When they leave the lobby, it will tell them that they have left the lobby area, and their inventory will be reset to whatever it was before they entered the arena. And they will be notified when they enter the lobby. On entry, it will also save their inventories, clear them (including armor/potions), and add the fight types to their inventory. Lobby will be /arena

Things to note: Players (even in same faction) can damage eachother. Players (even ops/admins) can't edit any blocks while in a duel.

Fight Types

Regular (Stick)

Iron armor, diamond sword, 32 pork

OP (Blaze Rod)

Prot IV diamond armor, op diamond sword, golden apples, health potions, speed II effect infinite (till death), weakness and slowness.

Soup (Soup)

Iron armor, diamond sword, full inventory of soups, speed II effect infinite (till death). The soups will have a name like &d&lSoup which will identify them as quick soups (eat them to regain health). When somebody clicks a soup, it adds hearts to them and makes the soup an empty soup. I don't want the soup to move around in their inventory or anything.

OP Soup (Enchanted Soup)

Same as above, but instead the diamond sword has sharpness I on it.

Noob (Leather)

Leather armor, wood sword, 32 pork.

Inventory (Pufferfish)

This will use whatever they had in their inventories before they came into the arena. And when they fight, whoever loses will have their items dropped, and the winner will be there for 15 seconds before getting tped out, and those items disappear. And the inventory save will remove itself, so they don't get items when the loser leaves the arena, and neither will the winner. And the winner will be tped to spawn when tped out of arena.

Commands

Admin Commands These commands are for admins only. The permission is

mattarena.admin.

  • /setarena <region id> - Sets the given region to be an arena.
  • /unsetarena <region id> - Unsets the given region from being an arena.
  • /setarenaspawn1 - Sets the first spawn point of the arena you are standing in.
  • /setarenaspawn2 - Sets the second spawn point of the arena you are standing in.
  • /setlobby <region id> - Sets the given region to be the arena lobby.
  • /setlobbyspawn - Sets the lobby's spawn point to be at the given location.

Player Commands These commands are for players.

  • /arena - Teleports the player who sent the command to the arena.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment