Join our discord
In partnership with NodeCraft Logo NodeCraft


You are not logged in! Create an account or login to contribute! Log in here!

Difference between revisions of "Mystery Gift"

From Pixelmon Wiki
m (added command aliases)
Line 18: Line 18:
 
Gifts have a user-defined expiry time and a limit to the number of players that can claim the gift. Messages will be broadcast to the server when the gift is five minutes, 90 seconds, and 30 seconds away from expiring. The time remaining for the gift is also displayed on the screen if Mystery Gift is installed client-side.
 
Gifts have a user-defined expiry time and a limit to the number of players that can claim the gift. Messages will be broadcast to the server when the gift is five minutes, 90 seconds, and 30 seconds away from expiring. The time remaining for the gift is also displayed on the screen if Mystery Gift is installed client-side.
 
==Commands==
 
==Commands==
*/mysterygift: Displays the arguments that can be be used with the non-admin /mysterygift command.
+
*/mysterygift (/mg, /gift): Displays the arguments that can be be used with the non-admin /mysterygift command.
 
*/mysterygift claim: Claims the currently available gift. This command will fail if there is no gift or if the player has already claimed the active gift.
 
*/mysterygift claim: Claims the currently available gift. This command will fail if there is no gift or if the player has already claimed the active gift.
 
*/mysterygift query: Displays what the currently available gift contains without claiming it.
 
*/mysterygift query: Displays what the currently available gift contains without claiming it.
*/mysterygiftadmin: Displays the arguments that can be used with the /mysterygiftadmin command.
+
*/mysterygiftadmin (/mgadmin, /giftadmin): Displays the arguments that can be used with the /mysterygiftadmin command.
 
*/mysterygiftadmin create ''type'' ''slot'' ''duration'' ''limit'': Creates a gift to offer to all players on the server. If there is already an active gift, creating a new gift will replace the existing one. All arguments must be inputted and are detailed below:
 
*/mysterygiftadmin create ''type'' ''slot'' ''duration'' ''limit'': Creates a gift to offer to all players on the server. If there is already an active gift, creating a new gift will replace the existing one. All arguments must be inputted and are detailed below:
 
**''type'': This can be either "item" or "pokemon" depending on which type of gift is to be created.
 
**''type'': This can be either "item" or "pokemon" depending on which type of gift is to be created.

Revision as of 00:09, 12 November 2015

Claiming a Pokémon from Mystery Gift.

Mystery Gift is a Pixelmon sidemod that allows server-wide "gifts" to be created by server admins for players to claim.

Installation

Any version of Pixelmon from 4.0.8 upwards is compatible with this mod. On servers, the mod is server-side and does not need to be installed by each individual player to be used. However, if a player has Mystery Gift installed client-side, an in-game GUI will be accessible that is a substitute for using commands to use Mystery Gift.

  1. Download Mystery Gift here.
  2. Place the downloaded jar file in the mods folder.

Overview

Mystery Gift allows a server admin to organize giveaways for items and Pokémon. This gift is defined by an item in the player's hotbar or a Pokémon in the player's party, and can be set by using "/mysterygiftadmin create" (detailed in the commands section below).

Players can claim a gift in two ways. If the player has Mystery Gift installed client-side, a GUI will be accessible by pressing the 'L' hotkey (by default), which will display the item or Pokémon that is being given away, with an option to claim the gift. Alternatively, the "/mysterygift claim" command can be used to immediately claim the available gift. Whenever a gift is offered, each player may only claim it once.

Most aspects of the gift are preserved:

  • For an item, the quantity of the item and its durability (if applicable) will remain when claimed by other players. However, item enchantments and names will not be saved and will revert back to their default values when players claim items with these aspects.
  • For a Pokémon, all attributes, including species, level, nickname, gender, happiness, Poké Ball, moves, PP, Nature, EVs, IVs, Abilities, held items, growth, and Shininess, are preserved when players claim the gift. However, current HP and statuses are not saved; Pokémon that players claim from Mystery Gift will always be restored to full health.


Gifts have a user-defined expiry time and a limit to the number of players that can claim the gift. Messages will be broadcast to the server when the gift is five minutes, 90 seconds, and 30 seconds away from expiring. The time remaining for the gift is also displayed on the screen if Mystery Gift is installed client-side.

Commands

  • /mysterygift (/mg, /gift): Displays the arguments that can be be used with the non-admin /mysterygift command.
  • /mysterygift claim: Claims the currently available gift. This command will fail if there is no gift or if the player has already claimed the active gift.
  • /mysterygift query: Displays what the currently available gift contains without claiming it.
  • /mysterygiftadmin (/mgadmin, /giftadmin): Displays the arguments that can be used with the /mysterygiftadmin command.
  • /mysterygiftadmin create type slot duration limit: Creates a gift to offer to all players on the server. If there is already an active gift, creating a new gift will replace the existing one. All arguments must be inputted and are detailed below:
    • type: This can be either "item" or "pokemon" depending on which type of gift is to be created.
    • slot: For an item gift, this is a number between 1-9 that corresponds to the inventory hotbar slot whose item will be used for the gift. For a Pokémon gift, this is a number between 1-6 that corresponds to the party slot containing the Pokémon to be used for the gift.
    • duration: This is how long (in seconds) the gift will last before expiring.
    • limit: This is the number of players that can claim the gift before it becomes unavailable to other players.
  • /mysterygiftadmin delete: Ends the existing gift immediately.

Permission nodes

  • /mysterygift: mysterygift.command.mysterygift
  • /mysterygiftadmin: mysterygift.command.mysterygiftadmin

© 2012 - 2025 Pixelmon Mod