Skip to content

Commit

Permalink
small fixes + added deploy to the commit CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JustMarfix committed Aug 31, 2024
1 parent 558031e commit 4979b2b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,25 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: Plugin DLL
path: ${{ github.workspace }}\bin\Release\VeryUsualDay.dll
path: ${{ github.workspace }}\bin\Release\VeryUsualDay.dll
deploy-testing:
name: Deploy plugin to the testing server
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download plugin from release
uses: robinraju/release-downloader@v1.10
with:
latest: true
fileName: 'VeryUsualDay.dll'
- name: Deploy plugin to the server
uses: rexlmanu/pterodactyl-upload-action@v2.1
with:
panel-host: ${{ secrets.PANEL_HOST }}
api-key: ${{ secrets.API_KEY }}
server-id: "c6fcbf0a"
source: "VeryUsualDay.dll"
target: "./.config/EXILED/Plugins/"
decompress-target: true
4 changes: 2 additions & 2 deletions Handlers/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public static void OnUsingItem(UsingItemEventArgs ev)

public static void OnVerified(VerifiedEventArgs ev)
{
if (VeryUsualDay.Instance.IsEnabledInRound)
if (VeryUsualDay.Instance.IsEnabledInRound && VeryUsualDay.Instance.Config.AuthToken != "")
{
var userData = (ITuple)VeryUsualDay.CheckIfPlayerInPrison(ev.Player);
if ((bool)userData[0])
Expand Down Expand Up @@ -293,7 +293,7 @@ public static void OnHealed(HealedEventArgs ev)

public static void OnInteractingDoor(InteractingDoorEventArgs ev)
{
if (VeryUsualDay.Instance.IsEnabledInRound) return;
if (!VeryUsualDay.Instance.IsEnabledInRound) return;
if (ev.Player.Role.Type == RoleTypeId.Scp0492 && ev.Door.IsOpen)
{
ev.IsAllowed = false;
Expand Down

0 comments on commit 4979b2b

Please sign in to comment.