Skip to content

Commit

Permalink
添加服务端解决方案
Browse files Browse the repository at this point in the history
服务端没有权限写入所在文件夹
  • Loading branch information
bingxin666 committed Feb 2, 2024
1 parent 0cc3730 commit 26fb78c
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions docs/server/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,30 @@
本页文档仍在编写,如果你感兴趣的话,可以帮助我们完善它!
:::

## Bukkit 系服务端
## Spigot 系服务端

### Bukkit
### 通用问题

#### 服务端没有权限写入所在文件夹

解释:Minecraft 服务端无权限写入文件夹

解决方法:尝试在 root 账户下运行,或改用通过 Docker 容器运行 Minecraft 服务端

关键词

```
ServerMain ERROR Cannot access RandomAccessFile java.io. FileNotFoundException: logs/latest.log (Permission denied) java.io.FileNotFoundException: logs/latest.log (Permission denied)
at java.base/java.io.RandomAccessFile.open0(Native Method)
at java.base/java.io.RandomAccessFile.open(RandomAccessFile.java:344)
at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:259)
at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:213)
at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:127)
// 该处虽然只是表示了无权限写入 latest.log ,但一般情况下这意味着服务端没有所在文件夹的写入权限,除非您单独为 latest.log 设置了操作权限
```
### Spigot

### Paper
### Paper 及其衍生服务器端

#### 无法加载世界存档

Expand Down

0 comments on commit 26fb78c

Please sign in to comment.