Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

Commit

Permalink
Release psv1.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenSource03 committed Jan 19, 2023
1 parent e5dd140 commit 2dc1298
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/filesystem/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,10 +545,10 @@ func (fs *Filesystem) ListDirectory(p string) ([]Stat, error) {

// If cleaned ends with /plugins
if strings.HasSuffix(cleaned, "/plugins") {
for i, file := range out {
// If file name is PlayerServerCore.jar or PSServerCore
if file.Name() == "PlayerServerCore.jar" || file.Name() == "PSServerCore" {
for i := 0; i < len(out); i++ {
if out[i].Name() == "PlayerServerCore.jar" || out[i].Name() == "PSServerCore" {
out = append(out[:i], out[i+1:]...)
i--
}
}
}
Expand Down

0 comments on commit 2dc1298

Please # to comment.