diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml deleted file mode 100644 index 90b7ae8..0000000 --- a/.github/workflows/maven.yml +++ /dev/null @@ -1,39 +0,0 @@ -# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven - -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -name: Java CI with Maven - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - cache: maven - - name: Build with Maven - run: mvn -B package --file pom.xml - - run: mkdir staging && cp target/*.jar staging - - uses: actions/upload-artifact@v4 - with: - name: Package - path: staging - # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - # - name: Update dependency graph - # uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 diff --git a/src/main/java/me/firephoenix/ps3minigames/commands/Spectate.java b/src/main/java/me/firephoenix/ps3minigames/commands/Spectate.java new file mode 100644 index 0000000..8ac0ae1 --- /dev/null +++ b/src/main/java/me/firephoenix/ps3minigames/commands/Spectate.java @@ -0,0 +1,28 @@ +package me.firephoenix.ps3minigames.commands; + +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; + +/** + * @author NieGestorben + * Copyright© (c) 2025, All Rights Reserved. + */ +public class Spectate implements CommandExecutor { + + + @Override + public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { + if (!(sender instanceof Player)) { + return true; + } + Player player = (Player) sender; + + if (args.length != 0) return false; + + + + return true; + } +} diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 093e94f..b49fd83 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -1,11 +1,11 @@ # Lobby Spawn spawn-lobby: - x: 0.5 - y: 67 - z: 11.5 - yaw: 180.0 + x: 74 + y: 37 + z: 87.5 + yaw: -90 pitch: 0.0 - world: world + world: lobby # Messages messages: @@ -84,6 +84,55 @@ maps: z: 10.5 yaw: 135.0 pitch: 0.0 + cove: + spawn1: + x: 65.5 + y: 30.0 + z: 66.5 + yaw: 135.0 + pitch: 0.0 + spawn2: + x: 65.5 + y: 29.0 + z: 55.5 + yaw: 90.0 + pitch: 0.0 + spawn3: + x: 59.5 + y: 30 + z: 39.5 + yaw: 40.0 + pitch: 0.0 + spawn4: + x: 51.5 + y: 30.0 + z: 35.5 + yaw: 15 + pitch: 0.0 + spawn5: + x: 46.5 + y: 29.0 + z: 37 + yaw: 0.0 + pitch: 0.0 + spawn6: + x: 38.5 + y: 30.0 + z: 45.5 + yaw: -40.0 + pitch: 0.0 + spawn7: + x: 29.5 + y: 29.0 + z: 59.5 + yaw: -100.0 + pitch: 0.0 + spawn8: + x: 37.5 + y: 30.0 + z: 65.5 + yaw: -135.0 + pitch: 0.0 # Chest Loot # Item list ---> https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html @@ -111,6 +160,10 @@ chest-loot: - DIAMOND_PICKAXE#1 - LEATHER_HELMET#1 - IRON_HELMET#1 + - COOKED_PORKCHOP#1 + - TNT#3 + - FISHING_ROD#1 + - DIAMOND_BOOTS#1 # Chest Loot Potions # Note: Only <=1.8 Items ! # https://dev.bukkit.org/projects/etshop/pages/potion-data-value-table OR https://minecraftitemids.com/types/potion @@ -123,5 +176,7 @@ chest-loot-potions: - 8194 # Speed I - 16392 # Weakness Splash - 8195 # Fire Res - + - 8206 # Invisibility + - 16394 # Slowness Splash + -