mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Temp. "fix"
This commit is contained in:
parent
3181b1db71
commit
40e6b7e165
@ -17,6 +17,7 @@ import com.sk89q.worldedit.regions.CuboidRegion;
|
|||||||
*/
|
*/
|
||||||
public class PWE {
|
public class PWE {
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public static void setMask(Player p, Location l) {
|
public static void setMask(Player p, Location l) {
|
||||||
try {
|
try {
|
||||||
LocalSession s;
|
LocalSession s;
|
||||||
@ -75,24 +76,26 @@ public class PWE {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public static boolean noMask(LocalSession s) {
|
public static boolean noMask(LocalSession s) {
|
||||||
try {
|
// try {
|
||||||
com.sk89q.worldedit.masks.Mask mask = s.getMask();
|
// com.sk89q.worldedit.masks.Mask mask = s.getMask();
|
||||||
return mask == null;
|
// return mask == null;
|
||||||
}
|
// }
|
||||||
catch (Throwable e) {
|
// catch (Throwable e) {
|
||||||
return true;
|
// return true;
|
||||||
}
|
// }
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void removeMask(Player p, LocalSession s) {
|
public static void removeMask(Player p, LocalSession s) {
|
||||||
try {
|
// try {
|
||||||
s.setMask(null);
|
// s.setMask(null);
|
||||||
}
|
// }
|
||||||
catch (Throwable e) {
|
// catch (Throwable e) {
|
||||||
com.sk89q.worldedit.masks.Mask mask = null;
|
// com.sk89q.worldedit.masks.Mask mask = null;
|
||||||
s.setMask(mask);
|
// s.setMask(mask);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void removeMask(Player p) {
|
public static void removeMask(Player p) {
|
||||||
|
Loading…
Reference in New Issue
Block a user