Giter Site home page Giter Site logo

bedwars's Introduction

BedWars

Required plugins

Config Tree

config.yml

map: # <required> map name here, maps/<here>.yml [Default: none]
mininumPlayers: # <optional> specify minimum players for start game. [Default: 4]
maximumPlayers: # <optional> specify maximum players for join server. [Default: 16]
domain: # -1 score at the scoreboard. Shown for all players. [Default: www.acrylicstyle.xyz]

maps/<map>.yml

world: # <required> world name [Default: none]
name: # <optional but strongly recommended> The name of this map. [Default: "???"]
divider: 0 # never set this to -1
teamSize: # <optional> size of a team [Default: 2]
teams:
  red:
    generator:
      x: # X pos for generator
      y: # Y pos for generator
      z: # Z pos for generator
    spawn:
      x: # X pos for spawn point
      y: # Y pos for spawn point
      z: # Z pos for spawn point
    itemShop:
      x: # X pos for Item Shop NPC
      y: # Y pos for Item Shop NPC
      z: # Z pos for Item Shop NPC
    upgrade:
      x: # X pos for Team Upgrade NPC
      y: # Y pos for Team Upgrade NPC
      z: # Z pos for Team Upgrade NPC
  blue:
    generator:
      x: # X pos for generator
      y: # Y pos for generator
      z: # Z pos for generator
    spawn:
      x: # X pos for spawn point
      y: # Y pos for spawn point
      z: # Z pos for spawn point
    itemShop:
      x: # X pos for Item Shop NPC
      y: # Y pos for Item Shop NPC
      z: # Z pos for Item Shop NPC
    upgrade:
      x: # X pos for Team Upgrade NPC
      y: # Y pos for Team Upgrade NPC
      z: # Z pos for Team Upgrade NPC
  yellow:
    generator:
      x: # X pos for generator
      y: # Y pos for generator
      z: # Z pos for generator
    spawn:
      x: # X pos for spawn point
      y: # Y pos for spawn point
      z: # Z pos for spawn point
    itemShop:
      x: # X pos for Item Shop NPC
      y: # Y pos for Item Shop NPC
      z: # Z pos for Item Shop NPC
    upgrade:
      x: # X pos for Team Upgrade NPC
      y: # Y pos for Team Upgrade NPC
      z: # Z pos for Team Upgrade NPC
  green:
    generator:
      x: # X pos for generator
      y: # Y pos for generator
      z: # Z pos for generator
    spawn:
      x: # X pos for spawn point
      y: # Y pos for spawn point
      z: # Z pos for spawn point
    itemShop:
      x: # X pos for Item Shop NPC
      y: # Y pos for Item Shop NPC
      z: # Z pos for Item Shop NPC
    upgrade:
      x: # X pos for Team Upgrade NPC
      y: # Y pos for Team Upgrade NPC
      z: # Z pos for Team Upgrade NPC
  aqua:
    generator:
      x: # X pos for generator
      y: # Y pos for generator
      z: # Z pos for generator
    spawn:
      x: # X pos for spawn point
      y: # Y pos for spawn point
      z: # Z pos for spawn point
    itemShop:
      x: # X pos for Item Shop NPC
      y: # Y pos for Item Shop NPC
      z: # Z pos for Item Shop NPC
    upgrade:
      x: # X pos for Team Upgrade NPC
      y: # Y pos for Team Upgrade NPC
      z: # Z pos for Team Upgrade NPC
  pink:
    generator:
      x: # X pos for generator
      y: # Y pos for generator
      z: # Z pos for generator
    spawn:
      x: # X pos for spawn point
      y: # Y pos for spawn point
      z: # Z pos for spawn point
    itemShop:
      x: # X pos for Item Shop NPC
      y: # Y pos for Item Shop NPC
      z: # Z pos for Item Shop NPC
    upgrade:
      x: # X pos for Team Upgrade NPC
      y: # Y pos for Team Upgrade NPC
      z: # Z pos for Team Upgrade NPC
  white:
    generator:
      x: # X pos for generator
      y: # Y pos for generator
      z: # Z pos for generator
    spawn:
      x: # X pos for spawn point
      y: # Y pos for spawn point
      z: # Z pos for spawn point
    itemShop:
      x: # X pos for Item Shop NPC
      y: # Y pos for Item Shop NPC
      z: # Z pos for Item Shop NPC
    upgrade:
      x: # X pos for Team Upgrade NPC
      y: # Y pos for Team Upgrade NPC
      z: # Z pos for Team Upgrade NPC
  black:
    generator:
      x: # X pos for generator
      y: # Y pos for generator
      z: # Z pos for generator
    spawn:
      x: # X pos for spawn point
      y: # Y pos for spawn point
      z: # Z pos for spawn point
    itemShop:
      x: # X pos for Item Shop NPC
      y: # Y pos for Item Shop NPC
      z: # Z pos for Item Shop NPC
    upgrade:
      x: # X pos for Team Upgrade NPC
      y: # Y pos for Team Upgrade NPC
      z: # Z pos for Team Upgrade NPC
  semiMiddle: # Diamond Generator
    generators:
      - "X pos,Y pos,Z pos" # Type it without any whitespaces!
      - "X pos,Y pos,Z pos" # 2nd generator
  middle: # Emerald Generator
    generators:
      - "X pos,Y pos,Z pos" # Type it without any whitespaces!
      - "X pos,Y pos,Z pos" # 2nd generator
beds:
  locationTeam:
    ",,": RED # 1st part of bed 
    ",,": RED # 2nd part of bed
    ",,": BLUE
    ",,": BLUE
    # ...

Features

  • Item Shop
  • Resource Generator(Iron, Gold)
  • Diamond Generator
  • Emerald Generator
  • Team Upgrades
  • (Almost) Configurable
  • Generators Hologram

bedwars's People

Contributors

acrylic-style avatar dependabot[bot] avatar

Watchers

 avatar  avatar

bedwars's Issues

error

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:compile (default-compile) on project BedWars: Compilation failure: Compilation failure:
[ERROR] /D:/matrixbw/src/main/java/xyz/acrylicstyle/bedwars/BedWars.java:[317,38] 找不到符号
[ERROR] 符号: 变量 uuid
[ERROR] 位置: 类 xyz.acrylicstyle.bedwars.BedWars
[ERROR] /D:/matrixbw/src/main/java/xyz/acrylicstyle/bedwars/BedWars.java:[318,38] 找不到符号
[ERROR] 符号: 变量 uuid
[ERROR] 位置: 类 xyz.acrylicstyle.bedwars.BedWars
[ERROR] -> [Help 1]

BedWars.team.values(team).removeReturnCollection(e.getPlayer().getUniqueId()).forEach((uuid, team1) -> {
if (Bukkit.getPlayer(uuid).getLocation().distance(resourceSpawn) <= 4) {
Bukkit.getPlayer(uuid).getInventory().addItem(new ItemStack(type));
}
});

this bedwars *isn't* thread safe!

If 2 or more players have joined at the same time exactly, everything will happen twice.
Resources will generate 2x resource, 2x faster time, 2x teams, 2x villagers, and even scoreboard!

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.