CreaFun.jar

Details

  • Filename
    CreaFun.jar
  • Uploaded by
  • Uploaded
    Jan 13, 2023
  • Size
    47.09 KB
  • Downloads
    238
  • MD5
    bebd92e5f2df782e137152aa616cc8eb

Supported Bukkit Versions

  • 1.19.3
  • 1.19.2

Changelog

2.5.2 | UPDATE Adding Bstats !

Adding Bstats !

2.5.1 | BUG FIX ON THE CONSOLE

Error occurred while enabling CreaParty v2.5.0 (Is it up to date?)

java.lang.NullPointerException: Cannot invoke "org.bukkit.command.PluginCommand.setExecutor(org.bukkit.command.CommandExecutor)" because the return value of "creaparty.fun.FUN.getCommand(String)" is null

 

now fixed !

 

2.5.0 | UPDATE INVINCIBLE Now configurable on the Config !

The new version of our plugin is now live, and we made some changes to keep things fair and balanced for all players. The command /creafun invincible was just too OP, so we added some limits like a time limit and cooldown.

And we even put in some restrictions as restrict the utilisation, so be sure to check out the config.yml before using it.

But don't worry, it's still gonna be a blast! Just make sure you clean reinstall the plugin to fully enjoy these new changes.

More Aesthetic...

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
 @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...

 

@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);

        }
    }

 

2.4.1 | Oh god... that is a Patch Updated ! IF you have download this update by this file !!

Hey gamers,

I just wanted to reach out and apologize for any issues you may have had with the last update of my plugin. Trust me, I feel your pain and I know how frustrating it can be when things don't go as planned.

My name is ReedPasse, also known as PassepartoutFR, and I am the developer of this plugin. I've been working hard to fix all the bugs and make sure this new version is top-notch. If you're using my plugin, I'd really appreciate it if you could update to the latest version. It should be smooth sailing from here on out.

Thanks for your patience and understanding. I know I've let you down before, but I promise to do better going forward.

Sincerely, ReedPasse (PassepartoutFR)

2.4.0 | Road for Players !

We are proud to present the ROAD command, a new addition to our server that will make your travels smoother and more enjoyable. With the ROAD command, you can lay down a path of dirt behind you as you move, making it easier to navigate through the world.

So why wait? Try out the ROAD command now and take the first step towards an improved gaming experience!"

Simply do /creafun road !

2.3.1 | AFK is now available!

Are you tired of being interrupted while you're AFK in your Minecraft game? Now, with the AFK command, you can let your friends know when you're stepping away from your computer and prevent being disturbed in-game. Simply type /creafun afk and you'll be marked as AFK (away from keyboard) in the chat, and other players will receive a warning message when they come close to you. You will also become invulnerable and unable to move while AFK. When you return, simply type the command again to remove the AFK status.

With the AFK command, you can keep playing without being interrupted or disturbed by other players. Try it out today with CreaParty!

2.3 | UPDATE

Fix issues with the plugin and redo some parts.

2.2.1 | Fixed error for Command

 

name: CreaParty
version: 2.2.1
main: creaparty.fun.FUN
author: CLEMENT LEFEBVRE Aka PassepartoutFR
description: A plugin that provides creative and fun commands for Minecraft players.
commands:
  creaparty:
    description: Enter creative mode for 35 minutes.
    usage: /creaparty
    permission: creaparty.use
    permission-message: You do not have permission to use this command.
  creafun:
    description: A collection of fun commands for Minecraft players.
    usage: /creafun <subcommand>
    permission: creaparty.use
    permission-message: You do not have permission to use this command.
    subcommands:
      weather:
        description: Changes the weather in the player's world.
        usage: /creafun weather <clear|rain|thunder>
        permission: creaparty.use.weather
        permission-message: You do not have permission to use this command.
      fly:
        description: Allows the player to fly.
        usage: /creafun fly <on|off>
        permission: creaparty.use.fly
        permission-message: You do not have permission to use this command.
      invisible:
        description: Makes the player invisible to other players.
        usage: /creafun invisible <on|off>
        permission: creaparty.use.invisible
        permission-message: You do not have permission to use this command.
      invincible:
        description: Makes the player immune to damage.
        usage: /creafun invincible <on|off>
        permission: creaparty.use.invincible
        permission-message: You do not have permission to use this command.
permissions:
  creaparty.use:
    default: op
    description: Grants access to all CreaParty commands.
  creaparty.use.weather:
    default: op
    description: Grants access to the weather command.
  creaparty.use.fly:
    default: op
    description: Grants access to the fly command.
  creaparty.use.invisible:
    default: op
    description: Grants access to the invisible command.
  creaparty.use.invincible:
    default: op
    description: Grants access to the invincible command.

 

2.2 | UPDATE FOR PLUGIN.YML

Let me know if you have issues

2.1 | Fix some issues... grrrr

Now normally the config.yml is fixed correctly do not hesitate to contact me if you have issues... !

I have fix a issue that when the op do a reload of the server that will remove the possibility even to the OP to fly... Now that fixed ! Sorry about that !!

2.0 | UPDATE CONFIG.YML

You can now edit the Cooldown into the Configuration.yml !

The cooldown is the time before a player can use again the command /creaparty by default its set at 3600 (1hour) but now you can set the timing you want.

1.8.7 | UPDATE

Small minor update to add a verification for the player when they join the server.

If they are set as Invincible the plugin will put them back as Vincible !

1.8.6 | UPDATE

Now the OP are not touch by the rules i've put on the 1.8.6.

If a player is in GAMEMODE CREATIVE on join he will be set as survival but that do not apply on Admin server.
 

1.8.5 | UPDATE

I have put the rule as when a player disconnect or join back he will be set as survival.

Lets continues...

1.8 | UPDATE | Let you full access to the config.yml NOW

Now you can edit this file !

1.7 | Adding Configuration files for /Creaparty

Now you can edit the how long the player can stay by default this is 35 minutes.


# The time limit (in minutes) for creative mode.
time_limit: 35

To edit this go to the plugins folder and explore config.yml
For this update ONLY the Time_limit is available to edit.

1.6 UPDATE

Limitation for use /creapary

In this version of the code, if the player's current game mode is already creative, the code will not reset the timing or update the player's last use time, and will simply return.

This means that the player will not receive any warning messages and their game mode will not be changed back to their previous game mode after 35 minutes.

The limitation of use is set for 35minutes in creative and the command can't be run for 1Hour after the last use.

UPDATE 1.5

FIXED ISSUE WITH /creafun fly ON/OFF
On the 1.4 this command was not in the code and done know why ... i remember to add it... but here it come... now available the flying command for player with the /creafun fly on/off

Weather Controle is now available !

The player can controle the weather with this command

Optimisation of the Code sources to put each command To new classes.

Optimisation and clean Code

All the code has be rework to create special classes as

InvisibilityManager.java
InvincibilityManager.java
CreativeModeCommand.java

ADDING NEW COMMAND

description: Toggle invincibility or invisibility, or enable/disable fly mode. usage: /creafun invincibility|invisibility|fly on|off

ADDING

1.1 UPDATE

ADDING NEW FEATURES
  • /creafun invincibility <on|off>: Toggles invincibility for the player.
  • /creafun invisibility <on|off>: Toggles invisibility for the player.
PERMISSIONS LIKED
  • creaparty.group: Required to use the /creaparty command.
  • creaparty.artefact.fun: Required to use the /creafun command.