Remove Github runner
This commit is contained in:
parent
01c64a468e
commit
424499c510
3 changed files with 89 additions and 45 deletions
39
.github/workflows/maven.yml
vendored
39
.github/workflows/maven.yml
vendored
|
|
@ -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
|
|
||||||
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
# Lobby Spawn
|
# Lobby Spawn
|
||||||
spawn-lobby:
|
spawn-lobby:
|
||||||
x: 0.5
|
x: 74
|
||||||
y: 67
|
y: 37
|
||||||
z: 11.5
|
z: 87.5
|
||||||
yaw: 180.0
|
yaw: -90
|
||||||
pitch: 0.0
|
pitch: 0.0
|
||||||
world: world
|
world: lobby
|
||||||
|
|
||||||
# Messages
|
# Messages
|
||||||
messages:
|
messages:
|
||||||
|
|
@ -84,6 +84,55 @@ maps:
|
||||||
z: 10.5
|
z: 10.5
|
||||||
yaw: 135.0
|
yaw: 135.0
|
||||||
pitch: 0.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
|
# Chest Loot
|
||||||
# Item list ---> https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
|
# Item list ---> https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
|
||||||
|
|
@ -111,6 +160,10 @@ chest-loot:
|
||||||
- DIAMOND_PICKAXE#1
|
- DIAMOND_PICKAXE#1
|
||||||
- LEATHER_HELMET#1
|
- LEATHER_HELMET#1
|
||||||
- IRON_HELMET#1
|
- IRON_HELMET#1
|
||||||
|
- COOKED_PORKCHOP#1
|
||||||
|
- TNT#3
|
||||||
|
- FISHING_ROD#1
|
||||||
|
- DIAMOND_BOOTS#1
|
||||||
# Chest Loot Potions
|
# Chest Loot Potions
|
||||||
# Note: Only <=1.8 Items !
|
# Note: Only <=1.8 Items !
|
||||||
# https://dev.bukkit.org/projects/etshop/pages/potion-data-value-table OR https://minecraftitemids.com/types/potion
|
# 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
|
- 8194 # Speed I
|
||||||
- 16392 # Weakness Splash
|
- 16392 # Weakness Splash
|
||||||
- 8195 # Fire Res
|
- 8195 # Fire Res
|
||||||
|
- 8206 # Invisibility
|
||||||
|
- 16394 # Slowness Splash
|
||||||
|
-
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue