mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 12:13:54 -07:00
Added per world PVP setting support.
By: Rigby <rigby@onarandombox.com>
This commit is contained in:
@@ -496,6 +496,18 @@ public interface World {
|
|||||||
*/
|
*/
|
||||||
public long getSeed();
|
public long getSeed();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the current PVP setting for this world.
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public boolean getPVP();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the PVP setting for this world.
|
||||||
|
* @param pvp True/False whether PVP should be Enabled.
|
||||||
|
*/
|
||||||
|
public void setPVP(boolean pvp);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Saves world to disk
|
* Saves world to disk
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user