Skip to content

Commit

Permalink
Update for PocketMine-MP API version 5.0.0 (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
DuoIncure committed Jun 23, 2023
1 parent 199b1fa commit 3fd3706
Show file tree
Hide file tree
Showing 113 changed files with 1,169 additions and 6,298 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
pull_request:
workflow_dispatch:

jobs:
build:
name: PHPStan analysis
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
php:
- "8.1"

steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: pmmp/setup-php-action@2.0.0
with:
php-version: ${{ matrix.php }}
install-path: "./bin"
pm-version-major: "5"

- name: Restore Composer package cache
id: composer-cache
uses: actions/cache@v2
with:
path: "~/.cache/composer"
key: "php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}"
restore-keys: "php-${{ matrix.php }}-composer-"

- name: Install PHPStan Composer dependencies
working-directory: ./tools/phpstan
run: composer install --prefer-dist --no-interaction

- name: Run PHPStan
working-directory: ./tools/phpstan
run: vendor/bin/phpstan analyze
220 changes: 220 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
.idea/

#################
## Eclipse
#################

*.pydevproject
.project
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath


#################
## Visual Studio
#################

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results

[Dd]ebug/
[Rr]elease/
x64/
build/
[Bb]in/
[Oo]bj/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.scc

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
*.ncrunch*
.*crunch*.local.xml

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.Publish.xml
*.pubxml

# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
#packages/

# Windows Azure Build Output
csx
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.[Pp]ublish.xml
*.pfx
*.publishsettings

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
App_Data/*.mdf
App_Data/*.ldf

#############
## Windows detritus
#############

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Mac crap
.DS_Store


#############
## Python
#############

*.py[co]

# Packages
*.egg
*.egg-info
dist/
eggs/
parts/
var/
sdist/
develop-eggs/
.installed.cfg

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.tox

#Translations
*.mo

#Mr Developer
.mr.developer.cfg

vendor/
composer.lock
dev/
output/
.php-cs-fixer.cache
11 changes: 9 additions & 2 deletions .poggit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@
build-by-default: true
branches:
- stable
- dev
- sbchat
- pm5
projects:
SkyBlocksPM:
path: ""
libs:
- src: Paroxity/Commando/Commando
version: ^3.0.0
- src: poggit/libasynql/libasynql
version: ^4.1.6
- src: sylvrs/libMarshal/libMarshal
version: ^1.4.3
branch: "feature/virion"
...
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<b>A SkyBlocks plugin for PocketMine-MP, with many features to offer.
<b>A SkyBlocks plugin for PocketMine-MP, with many features to offer.</b>

<p align="center">
SkyBlocksPM developed by: KressentHosting
Expand All @@ -19,12 +19,12 @@ SkyBlocksPM developed by: KressentHosting
- [x] Custom Island support
- [x] SQLITe3 & MYSQL Storage
- [x] Configurable messages
- [x] Island Settings
- [x] Island Members
- [x] Configurable visit UI
- [x] Island visit support
- [x] Starting Skyblock Chests (The chests will have the same contents from the ones which were present and as well as NPCs while using the `/is setworld` command)
- [x] Settings (Such as Interact, Pickup, Place Blocks, etc.)
- [x] Island Settings (Such as Interact, Pickup, Place Blocks, etc.)
- [x] Private Island Chat

# Setup

Expand All @@ -35,9 +35,8 @@ SkyBlocksPM developed by: KressentHosting

# Planned features

- [ ] Scoreboard support. (Maybe, slight chance)
- [ ] UI Support (Such as creating, modifying isalnds and etc)
- [ ] Private Island chat with chat format (Not officially decided yet)
- [ ] Scoreboard support. (Maybe)
- [ ] UI Support (Creating and Modifying islands, etc.)

And possibly few more that isn't listed as it's in development.

Expand Down
4 changes: 2 additions & 2 deletions plugin.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: SkyBlocksPM
api: 4.0.0
api: 5.0.0
author: Vecnavium
main: Vecnavium\SkyBlocksPM\SkyBlocksPM
version: 1.0.9
version: 1.1.0

permissions:
skyblockspm.command:
Expand Down
3 changes: 3 additions & 0 deletions resources/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#==========================================#
#Main Config File for SkyBlocksPM
#==========================================#
version: "1"

database:
# The database type. "sqlite" and "mysql" are supported.
type: sqlite
Expand All @@ -18,6 +20,7 @@ database:
username: root
password: ""
schema: skyblockspm
port: 3306
# The maximum number of simultaneous SQL queries
# Recommended: 1 for sqlite, 2 for MySQL. You may want to further increase this value if your MySQL connection is very slow.
worker-limit: 1
Expand Down
1 change: 0 additions & 1 deletion resources/messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ messages:
player-not-online: "The player you have specified is currently not online or doesnt exist."
have-sb: "You already own a SkyBlock Island"
no-sb: "You do not have a SkyBlock Island to use the command."
not-registered: "The player you have specified does not exist."
no-island: "The specified player does not own an island."
no-default-island: "The default island has not been set, please ask the server staff to use the '/sb setworld' command to set the island world"
no-sb-go: "You do not own a SkyBlock island"
Expand Down
Loading

0 comments on commit 3fd3706

Please sign in to comment.