utf-8 encoding

This commit is contained in:
Kiran Hart 2021-02-27 16:00:22 -05:00
parent c458a1c19a
commit 09b800a3d3
6 changed files with 41 additions and 11 deletions

View File

@ -2,26 +2,37 @@ name: Auction House Build
on:
push:
branches: [ main ]
paths:
- 'src/**'
- 'pom.xml'
- '.github/workflows/maven.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout the repository
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-package: jdk
java-version: 1.8
- name: Cache Maven Packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn package
run: mvn verify -B --file pom.xml
transfer:
needs: build
runs-on: ubuntu-latest
steps:
- name: Transfer main branch to Tweetzy
uses: andstor/copycat-action@v3
@ -34,4 +45,9 @@ jobs:
src_branch: main
dst_branch: main
commit_message: ${{ github.event.head_commit.message }}
exclude: .github/*
exclude: .github/*
jitpack:
runs-on: ubuntu-latest
steps:
- uses: badasintended/autojitpack@v0

View File

@ -8,6 +8,11 @@
<artifactId>AuctionHouse</artifactId>
<version>2.0.0</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<build>
<defaultGoal>clean install</defaultGoal>
<finalName>Auction House-${project.version}</finalName>

View File

@ -1,7 +1,6 @@
package ca.tweetzy.auctionhouse.guis;
import ca.tweetzy.auctionhouse.AuctionHouse;
import ca.tweetzy.auctionhouse.api.events.AuctionEndEvent;
import ca.tweetzy.auctionhouse.auction.AuctionItem;
import ca.tweetzy.auctionhouse.auction.AuctionStackType;
import ca.tweetzy.auctionhouse.helpers.ConfigurationItemHelper;
@ -9,14 +8,12 @@ import ca.tweetzy.auctionhouse.managers.SoundManager;
import ca.tweetzy.auctionhouse.settings.Settings;
import ca.tweetzy.core.compatibility.XMaterial;
import ca.tweetzy.core.inventory.TInventory;
import ca.tweetzy.core.utils.TextUtils;
import ca.tweetzy.core.utils.nms.NBTEditor;
import com.google.common.collect.Lists;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.inventory.Inventory;
import org.jetbrains.annotations.NotNull;
import java.util.List;
import java.util.UUID;

View File

@ -12,7 +12,6 @@ import com.google.common.collect.Lists;
import org.bukkit.Bukkit;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.inventory.Inventory;
import org.jetbrains.annotations.NotNull;
import java.util.HashMap;
import java.util.List;

View File

@ -1,10 +1,22 @@
package ca.tweetzy.auctionhouse.guis;
import ca.tweetzy.core.inventory.TInventory;
import org.bukkit.inventory.Inventory;
/**
* The current file has been created by Kiran Hart
* Date Created: February 18 2021
* Time Created: 10:07 p.m.
* Usage of any code found within this class is prohibited unless given explicit permission otherwise
*/
public class ExpiredItemsGUI {
public class ExpiredItemsGUI extends TInventory {
public ExpiredItemsGUI() {
}
@Override
public Inventory getInventory() {
return null;
}
}

View File

@ -21,6 +21,7 @@ import java.util.stream.Collectors;
* Usage of any code found within this class is prohibited unless given explicit permission otherwise
*/
public class AuctionItemManager {
@Getter