1
0
Fork 0

Fix UUID handling

main
Mari 4 years ago
parent 2ae6522f99
commit 49461a39dc
  1. 2
      src/main/kotlin/net/deliciousreya/minecraftportal/MinecraftPortalPlugin.kt

@ -96,7 +96,7 @@ class MinecraftPortalPlugin() : JavaPlugin(), Listener
}
return true
}
if (playerString != sender.name && !sender.isOp) {
if ((sender !is Player || playerString != sender.uniqueId.toString()) && !sender.isOp) {
sender.sendMessage("Only ops can set other players' colors with the two-arg form.")
return false
}

Loading…
Cancel
Save