Skip to content

Commit 3fd3706

Browse files
authored
Update for PocketMine-MP API version 5.0.0 (#46)
1 parent 199b1fa commit 3fd3706

File tree

113 files changed

+1169
-6298
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+1169
-6298
lines changed

.github/workflows/main.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
name: PHPStan analysis
11+
runs-on: ubuntu-20.04
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
php:
16+
- "8.1"
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
21+
- name: Setup PHP
22+
uses: pmmp/setup-php-action@2.0.0
23+
with:
24+
php-version: ${{ matrix.php }}
25+
install-path: "./bin"
26+
pm-version-major: "5"
27+
28+
- name: Restore Composer package cache
29+
id: composer-cache
30+
uses: actions/cache@v2
31+
with:
32+
path: "~/.cache/composer"
33+
key: "php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}"
34+
restore-keys: "php-${{ matrix.php }}-composer-"
35+
36+
- name: Install PHPStan Composer dependencies
37+
working-directory: ./tools/phpstan
38+
run: composer install --prefer-dist --no-interaction
39+
40+
- name: Run PHPStan
41+
working-directory: ./tools/phpstan
42+
run: vendor/bin/phpstan analyze

.gitignore

Lines changed: 220 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,220 @@
1+
.idea/
2+
3+
#################
4+
## Eclipse
5+
#################
6+
7+
*.pydevproject
8+
.project
9+
.metadata
10+
bin/
11+
tmp/
12+
*.tmp
13+
*.bak
14+
*.swp
15+
*~.nib
16+
local.properties
17+
.classpath
18+
.settings/
19+
.loadpath
20+
21+
# External tool builders
22+
.externalToolBuilders/
23+
24+
# Locally stored "Eclipse launch configurations"
25+
*.launch
26+
27+
# CDT-specific
28+
.cproject
29+
30+
# PDT-specific
31+
.buildpath
32+
33+
34+
#################
35+
## Visual Studio
36+
#################
37+
38+
## Ignore Visual Studio temporary files, build results, and
39+
## files generated by popular Visual Studio add-ons.
40+
41+
# User-specific files
42+
*.suo
43+
*.user
44+
*.sln.docstates
45+
46+
# Build results
47+
48+
[Dd]ebug/
49+
[Rr]elease/
50+
x64/
51+
build/
52+
[Bb]in/
53+
[Oo]bj/
54+
55+
# MSTest test Results
56+
[Tt]est[Rr]esult*/
57+
[Bb]uild[Ll]og.*
58+
59+
*_i.c
60+
*_p.c
61+
*.ilk
62+
*.meta
63+
*.obj
64+
*.pch
65+
*.pdb
66+
*.pgc
67+
*.pgd
68+
*.rsp
69+
*.sbr
70+
*.tlb
71+
*.tli
72+
*.tlh
73+
*.tmp_proj
74+
*.log
75+
*.vspscc
76+
*.vssscc
77+
.builds
78+
*.pidb
79+
*.scc
80+
81+
# Visual C++ cache files
82+
ipch/
83+
*.aps
84+
*.ncb
85+
*.opensdf
86+
*.sdf
87+
*.cachefile
88+
89+
# Visual Studio profiler
90+
*.psess
91+
*.vsp
92+
*.vspx
93+
94+
# Guidance Automation Toolkit
95+
*.gpState
96+
97+
# ReSharper is a .NET coding add-in
98+
_ReSharper*/
99+
*.[Rr]e[Ss]harper
100+
101+
# TeamCity is a build add-in
102+
_TeamCity*
103+
104+
# DotCover is a Code Coverage Tool
105+
*.dotCover
106+
107+
# NCrunch
108+
*.ncrunch*
109+
.*crunch*.local.xml
110+
111+
# Installshield output folder
112+
[Ee]xpress/
113+
114+
# DocProject is a documentation generator add-in
115+
DocProject/buildhelp/
116+
DocProject/Help/*.HxT
117+
DocProject/Help/*.HxC
118+
DocProject/Help/*.hhc
119+
DocProject/Help/*.hhk
120+
DocProject/Help/*.hhp
121+
DocProject/Help/Html2
122+
DocProject/Help/html
123+
124+
# Click-Once directory
125+
publish/
126+
127+
# Publish Web Output
128+
*.Publish.xml
129+
*.pubxml
130+
131+
# NuGet Packages Directory
132+
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
133+
#packages/
134+
135+
# Windows Azure Build Output
136+
csx
137+
*.build.csdef
138+
139+
# Windows Store app package directory
140+
AppPackages/
141+
142+
# Others
143+
sql/
144+
*.Cache
145+
ClientBin/
146+
[Ss]tyle[Cc]op.*
147+
~$*
148+
*~
149+
*.dbmdl
150+
*.[Pp]ublish.xml
151+
*.pfx
152+
*.publishsettings
153+
154+
# RIA/Silverlight projects
155+
Generated_Code/
156+
157+
# Backup & report files from converting an old project file to a newer
158+
# Visual Studio version. Backup files are not needed, because we have git ;-)
159+
_UpgradeReport_Files/
160+
Backup*/
161+
UpgradeLog*.XML
162+
UpgradeLog*.htm
163+
164+
# SQL Server files
165+
App_Data/*.mdf
166+
App_Data/*.ldf
167+
168+
#############
169+
## Windows detritus
170+
#############
171+
172+
# Windows image file caches
173+
Thumbs.db
174+
ehthumbs.db
175+
176+
# Folder config file
177+
Desktop.ini
178+
179+
# Recycle Bin used on file shares
180+
$RECYCLE.BIN/
181+
182+
# Mac crap
183+
.DS_Store
184+
185+
186+
#############
187+
## Python
188+
#############
189+
190+
*.py[co]
191+
192+
# Packages
193+
*.egg
194+
*.egg-info
195+
dist/
196+
eggs/
197+
parts/
198+
var/
199+
sdist/
200+
develop-eggs/
201+
.installed.cfg
202+
203+
# Installer logs
204+
pip-log.txt
205+
206+
# Unit test / coverage reports
207+
.coverage
208+
.tox
209+
210+
#Translations
211+
*.mo
212+
213+
#Mr Developer
214+
.mr.developer.cfg
215+
216+
vendor/
217+
composer.lock
218+
dev/
219+
output/
220+
.php-cs-fixer.cache

.poggit.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22
build-by-default: true
33
branches:
44
- stable
5-
- dev
6-
- sbchat
5+
- pm5
76
projects:
87
SkyBlocksPM:
98
path: ""
9+
libs:
10+
- src: Paroxity/Commando/Commando
11+
version: ^3.0.0
12+
- src: poggit/libasynql/libasynql
13+
version: ^4.1.6
14+
- src: sylvrs/libMarshal/libMarshal
15+
version: ^1.4.3
16+
branch: "feature/virion"
1017
...

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<b>A SkyBlocks plugin for PocketMine-MP, with many features to offer.
2+
<b>A SkyBlocks plugin for PocketMine-MP, with many features to offer.</b>
33

44
<p align="center">
55
SkyBlocksPM developed by: KressentHosting
@@ -19,12 +19,12 @@ SkyBlocksPM developed by: KressentHosting
1919
- [x] Custom Island support
2020
- [x] SQLITe3 & MYSQL Storage
2121
- [x] Configurable messages
22-
- [x] Island Settings
2322
- [x] Island Members
2423
- [x] Configurable visit UI
2524
- [x] Island visit support
2625
- [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)
27-
- [x] Settings (Such as Interact, Pickup, Place Blocks, etc.)
26+
- [x] Island Settings (Such as Interact, Pickup, Place Blocks, etc.)
27+
- [x] Private Island Chat
2828

2929
# Setup
3030

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

3636
# Planned features
3737

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

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

plugin.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: SkyBlocksPM
2-
api: 4.0.0
2+
api: 5.0.0
33
author: Vecnavium
44
main: Vecnavium\SkyBlocksPM\SkyBlocksPM
5-
version: 1.0.9
5+
version: 1.1.0
66

77
permissions:
88
skyblockspm.command:

resources/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#==========================================#
22
#Main Config File for SkyBlocksPM
33
#==========================================#
4+
version: "1"
5+
46
database:
57
# The database type. "sqlite" and "mysql" are supported.
68
type: sqlite
@@ -18,6 +20,7 @@ database:
1820
username: root
1921
password: ""
2022
schema: skyblockspm
23+
port: 3306
2124
# The maximum number of simultaneous SQL queries
2225
# Recommended: 1 for sqlite, 2 for MySQL. You may want to further increase this value if your MySQL connection is very slow.
2326
worker-limit: 1

resources/messages.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ messages:
2020
player-not-online: "The player you have specified is currently not online or doesnt exist."
2121
have-sb: "You already own a SkyBlock Island"
2222
no-sb: "You do not have a SkyBlock Island to use the command."
23-
not-registered: "The player you have specified does not exist."
2423
no-island: "The specified player does not own an island."
2524
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"
2625
no-sb-go: "You do not own a SkyBlock island"

0 commit comments

Comments
 (0)