mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-17 23:01:01 +01:00
Added per world PVP setting support.
By: Rigby <rigby@onarandombox.com>
This commit is contained in:
parent
c1e9a053fb
commit
4ae1ef6d1d
1 changed files with 8 additions and 0 deletions
|
@ -612,4 +612,12 @@ public class CraftWorld implements World {
|
|||
public long getSeed() {
|
||||
return world.worldData.b();
|
||||
}
|
||||
|
||||
public boolean getPVP() {
|
||||
return world.pvpMode;
|
||||
}
|
||||
|
||||
public void setPVP(boolean pvp) {
|
||||
world.pvpMode = pvp;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue