mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 14:38:51 +00:00
Prefer fetching online players over offline players
This commit is contained in:
1 parent
fb26cc5627
commit
c097d4744a
5 files changed
+27
-2
No files matched your search
@@ -60,7 +60,7 @@ public final class CarbonChatTowny extends JavaPlugin {
|
||||
@EventHandler
|
||||
public void onResidentRemove(TownRemoveResidentEvent event) {
|
||||
String name = event.getResident().getName();
|
||||
ChatUser user = carbonChat.getUserService().wrap(Bukkit.getOfflinePlayer(name));
|
||||
ChatUser user = carbonChat.getUserService().wrap(name);
|
||||
Object town = user.getSelectedChannel().getContext(KEY);
|
||||
|
||||
if ((town instanceof Boolean) && ((Boolean) town)) {
|
||||
|
||||
Reference in new issue
Block a user