mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-28 11:44:42 +02:00
Potential fixes
Fixes #712 Fixes #711 Fixes #707 Fixes #705 Fixes #702 Fixes #698 Fixes #697 Fixes #694 Fixes #717
This commit is contained in:
@ -129,8 +129,8 @@ public class ConsolePlayer extends PlotPlayer {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteMeta(final String key) {
|
||||
meta.remove(key);
|
||||
public Object deleteMeta(final String key) {
|
||||
return meta.remove(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -1013,7 +1013,7 @@ public class Plot {
|
||||
* @param uuid
|
||||
*/
|
||||
public boolean removeDenied(final UUID uuid) {
|
||||
if (uuid == DBFunc.everyone) {
|
||||
if (uuid == DBFunc.everyone) {
|
||||
boolean result = false;
|
||||
for (UUID other : new HashSet<>(getDenied())) {
|
||||
result = result || PlotHandler.removeDenied(this, other);
|
||||
@ -1029,7 +1029,7 @@ public class Plot {
|
||||
* @param uuid
|
||||
*/
|
||||
public boolean removeTrusted(final UUID uuid) {
|
||||
if (uuid == DBFunc.everyone) {
|
||||
if (uuid == DBFunc.everyone) {
|
||||
boolean result = false;
|
||||
for (UUID other : new HashSet<>(getTrusted())) {
|
||||
result = result || PlotHandler.removeTrusted(this, other);
|
||||
@ -1045,7 +1045,7 @@ public class Plot {
|
||||
* @param uuid
|
||||
*/
|
||||
public boolean removeMember(final UUID uuid) {
|
||||
if (uuid == DBFunc.everyone) {
|
||||
if (uuid == DBFunc.everyone) {
|
||||
boolean result = false;
|
||||
for (UUID other : new HashSet<>(getMembers())) {
|
||||
result = result || PlotHandler.removeMember(this, other);
|
||||
|
@ -80,10 +80,8 @@ public abstract class PlotPlayer implements CommandCaller {
|
||||
* - metadata is session only
|
||||
* - deleting other plugin's metadata may cause issues
|
||||
* @param key
|
||||
*/
|
||||
public void deleteMeta(final String key) {
|
||||
if (meta != null) {
|
||||
meta.remove(key);
|
||||
*/
|
||||
public Object deleteMeta(final String key) {
|
||||
return meta.remove(key);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user