### Plugin Setup Command (Console) Source: https://github.com/easydonate/easypayments/blob/main/README.md This command initiates the quick setup process for the EasyPayments plugin directly in the server console. It guides the user through essential configuration steps. ```text ep setup ``` -------------------------------- ### Plugin Setup Command (In-Game) Source: https://github.com/easydonate/easypayments/blob/main/README.md This command allows players with appropriate permissions to initiate the quick setup process for the EasyPayments plugin within the game. It facilitates configuration without direct console access. ```text /ep setup ``` -------------------------------- ### Database Configuration Example Source: https://github.com/easydonate/easypayments/blob/main/README.md An example snippet showing how to configure the database connection for the EasyPayments plugin in the `config.yml` file. It highlights the 'database' section where connection details are specified. ```yaml database: # Specify your database type (mysql, postgresql, sqlite, h2) type: mysql # Database connection details host: localhost port: 3306 database: easypayments username: root password: "your_password" # For SQLite, specify the file path # file: "plugins/EasyPayments/easypayments.db" ``` -------------------------------- ### Build EasyPayments for Installed Spigot Versions Source: https://github.com/easydonate/easypayments/blob/main/docs/build-from-source-code.md This command builds the EasyPayments plugin for Spigot versions currently installed on the system and disables Folia support. It uses the 'only-installed' option for `buildSpigot`. ```bash ./gradlew clean build \ -PbuildFolia=false \ -PbuildPlatforms=spigot-internals \ -PbuildSpigot=only-installed ``` -------------------------------- ### Clone Repository and Build EasyPayments Plugin Source: https://github.com/easydonate/easypayments/blob/main/docs/build-from-source-code.md This snippet shows the basic steps to clone the EasyPayments repository and build the plugin using Gradle. It requires Git to be installed and accessible. ```bash git clone https://github.com/EasyDonate/EasyPayments.git cd EasyPayments ./gradlew clean build ``` -------------------------------- ### Identifying Incompatible Core: Stack Trace Example Source: https://github.com/easydonate/easypayments/blob/main/docs/3rd-party-platforms.md This code snippet shows an example of a Java stack trace that indicates an incompatible server core. The error `java.lang.IncompatibleClassChangeError` arises when a class, `InterceptedCommandListenerWrapper`, attempts to inherit from a final class, `CommandListenerWrapper`, which is a known issue with certain modified server cores. ```java Caused by: java.lang.IncompatibleClassChangeError: class ru.easydonate.easypayments.platform.spigot.nms.v1_16_R3.interceptor.InterceptedCommandListenerWrapper cannot inherit from final class net.minecraft.server.v1_16_R3.CommandListenerWrapper ``` -------------------------------- ### Get Bundle Fullness Display in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Calculates and returns a value representing how full the bundle is, used for display purposes. This helps players gauge the bundle's capacity. ```java float getFullnessDisplay(net.minecraft.world.item.ItemStack) -> d ``` -------------------------------- ### Get Bow Use Animation in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Specifies the animation displayed when the player is using the bow. This affects the visual feedback during aiming. ```java net.minecraft.world.item.UseAnim getUseAnimation(net.minecraft.world.item.ItemStack) -> c ``` -------------------------------- ### Get All Supported Projectiles for BowItem in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Returns a predicate that checks if a given projectile is supported by the BowItem. Used for validating arrows or other ammunition. ```java java.util.function.Predicate getAllSupportedProjectiles() -> b ``` -------------------------------- ### Get Empty Success Item for BucketItem in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Returns the item stack that results from successfully emptying a bucket. This is typically an empty bucket. ```java net.minecraft.world.item.ItemStack getEmptySuccessItem(net.minecraft.world.item.ItemStack,net.minecraft.world.entity.player.Player) -> a ``` -------------------------------- ### Get Enchantment Value of BookItem in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Retrieves the enchantment value of a BookItem. This value influences the likelihood and level of enchantments applied to the item. ```java int getEnchantmentValue() -> c ``` -------------------------------- ### Get Bow Use Duration in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Returns the duration a player must hold the bow to charge it. This dictates the maximum draw time for firing an arrow. ```java int getUseDuration(net.minecraft.world.item.ItemStack) -> b ``` -------------------------------- ### Get Default Projectile Range for BowItem in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Retrieves the default range of projectiles fired from the BowItem. This determines the effective distance for hitting targets. ```java int getDefaultProjectileRange() -> d ``` -------------------------------- ### Build All Spigot Versions (1.8 - 1.21.8) Source: https://github.com/easydonate/easypayments/blob/main/docs/build-from-source-code.md Compiles all Spigot versions from 1.8 to 1.21.8 using the Gradle wrapper. This task aggregates individual build tasks for each Spigot version. ```bash # build Spigot 1.8 - 1.21.8 using BuildTools ./gradlew buildAllSpigot ``` -------------------------------- ### BundleItem Constants and Initialization in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Defines constants and the constructor for BundleItem, managing its weight, capacity, and display properties. This item is used to store other items. ```java java.lang.String TAG_ITEMS -> b ``` ```java int MAX_WEIGHT -> a ``` ```java int BUNDLE_IN_BUNDLE_WEIGHT -> c ``` ```java int BAR_COLOR -> d ``` ```java void (net.minecraft.world.item.Item$Properties) -> ``` -------------------------------- ### Initialize BookItem in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Constructor for the BookItem class, which initializes the item with specified properties. This is a fundamental step for creating a BookItem instance. ```java void (net.minecraft.world.item.Item$Properties) -> ``` -------------------------------- ### Build from Source Information Source: https://github.com/easydonate/easypayments/blob/main/README.md This refers to instructions provided for compiling the EasyPayments plugin from its source code. It's typically located in a separate documentation file. ```markdown Information by build from source code is available [here](docs/build-from-source-code.md). ``` -------------------------------- ### Build EasyPayments for Paper 1.20.6+ Source: https://github.com/easydonate/easypayments/blob/main/docs/build-from-source-code.md This command builds the EasyPayments plugin for Paper 1.20.6+ using the `paper-internals` platform. Folia support is enabled by default. ```bash ./gradlew clean build \ -PbuildPlatforms=paper-internals ``` -------------------------------- ### BucketItem Content and Initialization in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Defines the fluid content of a BucketItem and its constructor. This allows for different types of buckets holding various fluids. ```java net.minecraft.world.level.material.Fluid content -> a ``` ```java void (net.minecraft.world.level.material.Fluid,net.minecraft.world.item.Item$Properties) -> ``` -------------------------------- ### Build Specific Spigot Version (e.g., 1.16.5) Source: https://github.com/easydonate/easypayments/blob/main/docs/build-from-source-code.md Builds a specific Spigot version, such as 1.16.5 (corresponding to NMS 1.16.R3). This allows for targeted compilation, useful when only certain server versions need to be supported. ```bash # build Spigot 1.16.5 (NMS 1.16.R3) ./gradlew buildSpigot@1.16.5 ``` -------------------------------- ### Build EasyPayments for Spigot 1.16.5 and 1.17.1 Source: https://github.com/easydonate/easypayments/blob/main/docs/build-from-source-code.md This command builds the EasyPayments plugin for specific Spigot versions (1.16.5 and 1.17.1) and disables Folia support. It configures the build using Gradle properties. ```bash ./gradlew clean build \ -PbuildFolia=false \ -PbuildPlatforms=spigot-internals \ -PbuildSpigot='1.16.5,1.17.1' ``` -------------------------------- ### Build EasyPayments for Paper 1.18.1+ without Folia Source: https://github.com/easydonate/easypayments/blob/main/docs/build-from-source-code.md This command builds the EasyPayments plugin specifically for Paper 1.18.1+ and disables Folia support. It utilizes Gradle properties to configure the build. ```bash ./gradlew clean build \ -PbuildFolia=false \ -PbuildPlatforms=paper-universal ``` -------------------------------- ### Team Management Commands (Java) Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Provides Java methods for managing player teams, including setting display names, colors, prefixes, and suffixes. It also includes functions for creating, deleting, listing members, and listing all teams. ```java int setDisplayName(net.minecraft.commands.CommandSourceStack,net.minecraft.world.scores.PlayerTeam,net.minecraft.network.chat.Component) -> a int setColor(net.minecraft.commands.CommandSourceStack,net.minecraft.world.scores.PlayerTeam,net.minecraft.ChatFormatting) -> a int emptyTeam(net.minecraft.commands.CommandSourceStack,net.minecraft.world.scores.PlayerTeam) -> a int deleteTeam(net.minecraft.commands.CommandSourceStack,net.minecraft.world.scores.PlayerTeam) -> b int createTeam(net.minecraft.commands.CommandSourceStack,java.lang.String) -> a int createTeam(net.minecraft.commands.CommandSourceStack,java.lang.String,net.minecraft.network.chat.Component) -> a int listMembers(net.minecraft.commands.CommandSourceStack,net.minecraft.world.scores.PlayerTeam) -> c int listTeams(net.minecraft.commands.CommandSourceStack) -> a int setPrefix(net.minecraft.commands.CommandSourceStack,net.minecraft.world.scores.PlayerTeam,net.minecraft.network.chat.Component) -> b int setSuffix(net.minecraft.commands.CommandSourceStack,net.minecraft.world.scores.PlayerTeam,net.minecraft.network.chat.Component) -> c ``` -------------------------------- ### Use BottleItem in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Handles the primary use action of a BottleItem, which typically involves interaction with the game world or player. This method defines the item's behavior when used. ```java net.minecraft.world.InteractionResultHolder use(net.minecraft.world.level.Level,net.minecraft.world.entity.player.Player,net.minecraft.world.InteractionHand) -> a ``` -------------------------------- ### Teleport Command (Java) Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Java methods for the TeleportCommand, enabling players to teleport to specific entities or locations. It includes command registration and the core teleportation logic. ```java com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_POSITION -> a void register(com.mojang.brigadier.CommandDispatcher) -> a int teleportToEntity(net.minecraft.commands.CommandSourceStack,java.util.Collection,net.minecraft.world.entity.Entity) -> a ``` -------------------------------- ### Third-Party Platform Support Source: https://github.com/easydonate/easypayments/blob/main/README.md Details regarding the support for server platforms other than the officially supported Spigot, Paper, or Folia. This information is usually found in a dedicated documentation file. ```markdown Detailed information about support for other cores is located [here](docs/3rd-party-platforms.md). ``` -------------------------------- ### Plugin Reload Command Source: https://github.com/easydonate/easypayments/blob/main/README.md This command reloads all components of the EasyPayments plugin in real-time, allowing for configuration changes to take effect without restarting the server. ```text /ep reload ``` -------------------------------- ### Team Message Command (Java) Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Java methods for the TeamMsgCommand, which allows players to send messages to their respective teams. It includes registering the command and handling message sending logic. ```java net.minecraft.network.chat.Style SUGGEST_STYLE -> a com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_ON_TEAM -> b void register(com.mojang.brigadier.CommandDispatcher) -> a int sendMessage(net.minecraft.commands.CommandSourceStack,net.minecraft.commands.arguments.MessageArgument$ChatMessage) -> a ``` -------------------------------- ### Turn Bottle into Item in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Converts a used BottleItem back into a usable item, often after performing an action. This method manages the state change of the bottle. ```java net.minecraft.world.item.ItemStack turnBottleIntoItem(net.minecraft.world.item.ItemStack,net.minecraft.world.entity.player.Player,net.minecraft.world.item.ItemStack) -> a ``` -------------------------------- ### Play Empty Sound for BucketItem in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Plays the appropriate sound effect when the bucket's contents are emptied. This enhances the auditory feedback for the player's actions. ```java void playEmptySound(net.minecraft.world.entity.player.Player,net.minecraft.world.level.LevelAccessor,net.minecraft.core.BlockPos) -> a ``` -------------------------------- ### Override Stacked On Other for BundleItem in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Handles the logic when a BundleItem is stacked onto another item in a slot. This method defines how the bundle interacts with other inventory items. ```java boolean overrideStackedOnOther(net.minecraft.world.item.ItemStack,net.minecraft.world.inventory.Slot,net.minecraft.world.inventory.ClickAction,net.minecraft.world.entity.player.Player) -> a ``` -------------------------------- ### Check Extra Content for BucketItem in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt A method to check or handle any additional content related to the bucket's use, potentially for special effects or interactions. ```java void checkExtraContent(net.minecraft.world.entity.player.Player,net.minecraft.world.level.Level,net.minecraft.world.item.ItemStack,net.minecraft.core.BlockPos) -> a ``` -------------------------------- ### Override Other Stacked On Me for BundleItem in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Manages the interaction when another item is stacked onto a BundleItem. This defines how the bundle reacts to receiving other items. ```java boolean overrideOtherStackedOnMe(net.minecraft.world.item.ItemStack,net.minecraft.world.item.ItemStack,net.minecraft.world.inventory.Slot,net.minecraft.world.inventory.ClickAction,net.minecraft.world.entity.player.Player,net.minecraft.world.entity.SlotAccess) -> a ``` -------------------------------- ### Finish Using BowlFoodItem in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Handles the completion of eating a BowlFoodItem. This method manages the consumption effects and returns the resulting item (e.g., an empty bowl). ```java net.minecraft.world.item.ItemStack finishUsingItem(net.minecraft.world.item.ItemStack,net.minecraft.world.level.Level,net.minecraft.world.entity.LivingEntity) -> a ``` -------------------------------- ### Empty Bucket Contents in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Handles the process of emptying the contents of a bucket at a specific location. This involves world interaction and potential block placement. ```java boolean emptyContents(net.minecraft.world.entity.player.Player,net.minecraft.world.level.Level,net.minecraft.core.BlockPos,net.minecraft.world.phys.BlockHitResult) -> a ``` -------------------------------- ### Release Bow Using Action in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Handles the action when a player releases the bow after drawing it. This method manages the projectile firing logic and associated effects. ```java void releaseUsing(net.minecraft.world.item.ItemStack,net.minecraft.world.level.Level,net.minecraft.world.entity.LivingEntity,int) -> a ``` -------------------------------- ### BowItem Constants in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Defines constants for BowItem, including maximum draw duration and default range. These values control the bow's behavior and capabilities. ```java int MAX_DRAW_DURATION -> a ``` ```java int DEFAULT_RANGE -> b ``` -------------------------------- ### Calculate Bow Power by Time in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Calculates the power of an arrow based on the time the bow has been drawn. This method determines the projectile's velocity and damage. ```java float getPowerForTime(int) -> a ``` -------------------------------- ### Check Enchantability of BookItem in Java Source: https://github.com/easydonate/easypayments/blob/main/buildSrc/src/main/resources/buildtools/minecraft-server/1.19-R0.1-SNAPSHOT/minecraft-server-1.19-R0.1-SNAPSHOT-maps-mojang.txt Determines if a BookItem can be enchanted. This method is crucial for understanding the enchantment mechanics associated with the item. ```java boolean isEnchantable(net.minecraft.world.item.ItemStack) -> c_ ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.