Earlier Versions
Name | Size | Uploaded | Game Version | Downloads | |
AlphaGift 3.0 release | 49.91 KB | Nov 26, 2017 | 1.12 | 137 | ![]() |
Description
I made this plugin in order for players to be able to demonstrate the friendship within the game.
Source Code in English.
Setting values in Portuguese.
Easy to use and configure.
Quick-Setup!
Standard serialization with NBT Tags.
MySQL and SQLite storage support.
Clean and open code!
Cooldown, sounds and particles!
Support versions 1.8 to 1.12.
Option to not receive gifts
cooldown: 10 sound: LEVEL_UP messages: ingame: '&cSomente jogadores IN-GAME podem enviar presentes!' time: '&cAguarde para presentear novamente!' inform: "&cPresenteie um amigo! Mas você deve informar seu nick primeiro..." self: "&cEpa.. Você não pode presentear a sí!" notonline: "&cOops.. Parece que este jogador não está online!" warn: "&cEnvie um item como presente para seu amigo, pegue-o na mão!" gift-sent: '&aPresentado, &e{0} &arecebeu o seu presente!' gift-received: "&aPresente recebido de &e{0} &avá ver oque é!" blocked: "&e{0} &cnão quer receber presentes no momento." toggle-on: "&cAgora, você nãoo pode mais receber presentes." toggle-off: "&aAgora, você pode receber presentes." information: '&eEnvie para seus amigos presentes usando &6/{0} {1}&e!' command_send: enviar menu: empty: "339 1 name=&fViish...; lore=&cParece que não, &chá presentes por aqui!" collected: "166 1 name=&7Presente recolhido &c<3" all: title: '&0Seus Presentes &9({0})' item_1: '&f{0}' item_2: - "&3Enviou &b{0} presentes &3para você." sent: title: '&0Presentes de &9{0}' item: - '&7&oRecebido {0}.' mysql: use: false host: localhost port: '3306' user: root pass: ??? name: alphagift<br /><br /><br />
public void on(GiftTransferEvent e) { Player p = e.getPlayer(); Player r = e.getReceiver(); ItemStack i = e.getItem(); }
public void on(GiftCollectEvent e) { Player p = e.getPlayer(); ItemStack i = e.getItem(); long t = e.getTime(); // ... timestamp gift have sent String s = e.getTimeString(); // ... time ago }<br /><br />
Installation:
- Put "AlphaGift 3.0.jar" in your plugins folder.
- Setup the way you prefer.
- Start or reload the server.
- Enter the game and use /alphagift.
Default Commands:
- /gift, /presente, /presentar
- /gifttoggle, /giftoggle, /gtoggle, /gifton, /giftoff
Commands can be changed in the configuration and in the "plugin.yml".
Give suggestions of what can be changed, removed or added to the plugin, your idea is strictly important for our development!
Add a comment