Skip to content

Commit

Permalink
push this please this is embarrassing
Browse files Browse the repository at this point in the history
  • Loading branch information
sh0inx committed Nov 11, 2023
1 parent 9bff5a0 commit 0e258a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public Configuration() {
public boolean clearInventoryOnRegen = false;
public boolean clearEnderChestOnRegen = false;
public boolean allowPvPOnIslands = false;
public boolean islandCreateOnJoin = false;
public int distance = 151;
public int netherUnlockLevel = 10;
public int endUnlockLevel = 20;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.iridium.iridiumskyblock.listeners;

import com.iridium.iridiumskyblock.IridiumSkyblock;
import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
Expand All @@ -12,4 +13,9 @@ public void onPlayerJoin(PlayerJoinEvent event) {
IridiumSkyblock.getInstance().getTeamManager().sendIslandBorder(event.getPlayer());
}

@EventHandler
public void onServerJoin(PlayerJoinEvent event) {
if(IridiumSkyblock.getInstance().getConfiguration().islandCreateOnJoin && !event.getPlayer().hasPlayedBefore())
Bukkit.getServer().dispatchCommand(event.getPlayer(), "is create");
}
}

0 comments on commit 0e258a8

Please sign in to comment.