File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Bukkit/src/main/java/com/plotsquared/bukkit/listener Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -354,7 +354,8 @@ public void onPlayerDyeSign(PlayerInteractEvent event) {
354354 }
355355 return ;
356356 }
357- if (plot .isAdded (event .getPlayer ().getUniqueId ())) {
357+ BukkitPlayer player = BukkitUtil .adapt (event .getPlayer ());
358+ if (plot .isAdded (player .getUUID ())) {
358359 return ; // allow for added players
359360 }
360361 if (!plot .getFlag (EditSignFlag .class )
Original file line number Diff line number Diff line change 1818 */
1919package com .plotsquared .bukkit .listener ;
2020
21+ import com .plotsquared .bukkit .player .BukkitPlayer ;
2122import com .plotsquared .bukkit .util .BukkitUtil ;
2223import com .plotsquared .core .location .Location ;
2324import com .plotsquared .core .permissions .Permission ;
@@ -53,7 +54,8 @@ public void onPlayerSignOpenEvent(PlayerSignOpenEvent event) {
5354 }
5455 return ;
5556 }
56- if (plot .isAdded (event .getPlayer ().getUniqueId ())) {
57+ BukkitPlayer player = BukkitUtil .adapt (event .getPlayer ());
58+ if (plot .isAdded (player .getUUID ())) {
5759 return ; // allow for added players
5860 }
5961 if (!plot .getFlag (EditSignFlag .class )
You can’t perform that action at this time.
0 commit comments