public final class Protections extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Protections.ProtectionListener
Provides total protection for blocks cached in
Protections |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isProtected(Location loc)
Returns
true if the passed Location is protected |
static void |
protect(Location loc)
Protects a single
Location from being altered |
static void |
unprotect(Location loc)
Removes protection from a single
Location. |
public static void protect(Location loc)
Location from being alteredloc - The Location to protectpublic static void unprotect(Location loc)
Location. Does nothing if the
location was not protected in the first place.loc - The Location to unprotectCopyright © 2015. All rights reserved.