Essential CreaFun - Creative mode (limited time), Fly on Survival, controle Weather and more... icon

Essential CreaFun - Creative mode (limited time), Fly on Survival, controle Weather and more... -----

Allows players to enter creative mode for a limited time, be AFK, Fly, Weather, Invincible and more.



2.4.1.1 | Damn i forgot and didnt see a good parameter as good humain as i am !
MAJOR UPDATE !
It is important that all users who have downloaded the plugin update to version 2.4.1.1 as soon as possible. The previous version may have caused issues with the gameplay on your server, and updating to version 2.4.1 will resolve these problems. Please take a few moments to update to version 2.4.1.1 to ensure that you are able to fully benefit from all of the features and improvements of the plugin. Thank you for your cooperation and understanding.

This patch is to set a proper @EvenHandler


Code (Text):
  @EventHandler
    public void onPlayerJoin(PlayerJoinEvent event) {
        Player player = event.getPlayer();

        // Set the player's game mode to survival if it is not already set to that
        if (player.getGameMode() != GameMode.CREATIVE) {
            player.setGameMode(GameMode.SURVIVAL);
            player.setInvulnerable(false); // Make the player vulnerable to damage

            player.setWalkSpeed(0.2f);
            player.setAllowFlight(false); // Disable flight for the player
            player.setFlying(false); // Make sure the player is not flying
            player.setFlySpeed(1.0f);

        }

        if (player.isOp()) {

            player.setWalkSpeed(0.2f);
            player.setAllowFlight(true); // Disable flight for the player
            player.setFlying(true); // Make sure the player is not flying
            player.setFlySpeed(1.0f);

        }
    }
the old code was wrong...

Code (Text):
@EventHandler
    public void onPlayerJoin(PlayerJoinEvent event) {
        Player player = event.getPlayer();

        // Set the player's game mode to survival if it is not already set to that
        if (player.getGameMode() != GameMode.SURVIVAL) {
            player.setGameMode(GameMode.SURVIVAL);
            player.setInvulnerable(false); // Make the player vulnerable to damage

            player.setWalkSpeed(0.2f);
            player.setAllowFlight(false); // Disable flight for the player
            player.setFlying(false); // Make sure the player is not flying
            player.setFlySpeed(1.0f);

        }

        if (player.isOp()) {

            player.setWalkSpeed(0.2f);
            player.setAllowFlight(true); // Disable flight for the player
            player.setFlying(true); // Make sure the player is not flying
            player.setFlySpeed(1.0f);

        }
    }
----------, Jan 10, 2023
Resource Information
Author:
----------
Total Downloads: 482
First Release: Jan 5, 2023
Last Update: Jan 13, 2023
Category: ---------------
All-Time Rating:
1 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings