mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-09-18 18:00:58 +02:00
Potential ban fixes
This commit is contained in:
parent
cb0e3ee281
commit
6bb498c607
@ -58,7 +58,7 @@ public class Ban {
|
|||||||
skyblock.getIslandManager().getIsland(Bukkit.getServer().getOfflinePlayer(islandOwnerUUID))
|
skyblock.getIslandManager().getIsland(Bukkit.getServer().getOfflinePlayer(islandOwnerUUID))
|
||||||
.getAPIWrapper(),
|
.getAPIWrapper(),
|
||||||
Bukkit.getServer().getOfflinePlayer(issuer), Bukkit.getServer().getOfflinePlayer(banned));
|
Bukkit.getServer().getOfflinePlayer(issuer), Bukkit.getServer().getOfflinePlayer(banned));
|
||||||
Bukkit.getScheduler().runTask(skyblock, () -> Bukkit.getServer().getPluginManager().callEvent(islandBanEvent));
|
Bukkit.getScheduler().scheduleSyncDelayedTask(skyblock, () -> Bukkit.getServer().getPluginManager().callEvent(islandBanEvent));
|
||||||
|
|
||||||
if (!islandBanEvent.isCancelled()) {
|
if (!islandBanEvent.isCancelled()) {
|
||||||
List<String> islandBans = new ArrayList<>();
|
List<String> islandBans = new ArrayList<>();
|
||||||
|
@ -223,7 +223,7 @@ public class Bans {
|
|||||||
nInv.createItem(SkullUtil.create(targetPlayerTexture[0], targetPlayerTexture[1]),
|
nInv.createItem(SkullUtil.create(targetPlayerTexture[0], targetPlayerTexture[1]),
|
||||||
ChatColor.translateAlternateColorCodes('&',
|
ChatColor.translateAlternateColorCodes('&',
|
||||||
configLoad.getString("Menu.Bans.Item.Ban.Displayname")
|
configLoad.getString("Menu.Bans.Item.Ban.Displayname")
|
||||||
.replace("%player", targetPlayerName)),
|
.replace("%player", targetPlayerName == null ? "" : targetPlayerName)),
|
||||||
configLoad.getStringList("Menu.Bans.Item.Ban.Lore"), null, null, null),
|
configLoad.getStringList("Menu.Bans.Item.Ban.Lore"), null, null, null),
|
||||||
inventorySlot);
|
inventorySlot);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user