Updates
- VIP history in menu: /vip history <player> (staff; also /historicovip) shows everything that happened to the player's VIPs, from youngest to oldest: activation, exchange, time added/removido, freezing, expiration, removal, upgrade, VIP item and market (sale, purchase and shipping), with date, who did it and where.
- Filters (activations, exchanges, time, exits, market) and the By VIP tab: each VIP that the player has had, with when it was received, activated and when it expired or expired; clicking, the history of only that VIP.
- The player sees his own history with /vip history (staff actions appear as Team). Permissions starvips.historico (staff) and starvips.historico.proprio (everyone). The history starts counting from this version.
- Confirmation of purchase in the Credit Store: when clicking on an item, a screen opens with the item, the price and its balance, and the Confirm and Cancel buttons. Without enough credits, the warning appears immediately.
- You can turn it off for the entire store (Loja.Confirmar purchase: false at menus.yml) or just for one item (Confirm: false). Those who already use plugin receive the new screen alone at the end of menus.yml.
- Fixed: on server 1.8.8 using SQLite, the database did not open or the data was not saved (the SQLite that comes with 1.8.8 is old). Tested on 1.8.8 and 1.20.4.
- The VIP item is now delivered directly to the player: /itemvip give <player> <vip> <duration> [quantity] (works via console, ideal for the store). Whoever receives it is notified, and anything that doesn't fit in the inventory falls to the floor. The permission is now starvips.itemvip.dar (the old one starvips.itemvip.criar is still valid).
- New VIP item: with /itemvip create <vip> <duration> [quantity] the staff transforms the hand item into a VIP voucher; the player clicks with the right button, confirms in the menu and the VIP is activated (adds the time if you already have).
- Green and red menu buttons appear again with the correct color on 1.8.
- Clickable links in messages in all versions (1.8+): <click:...> and <hover:...> now work without Paper, OPEN_URL in capital letters and links without https are accepted, and the website written in the text (loja.com.br) becomes a link alone.
- Choose the economy used to bill and pay:
economia: vault(default) or a StarEconomia currency, such asstareconomia-cash(need loader 2.0.82).
- Menu title with RGB color (hex) is no longer cut off: from 1.14 the title appears in its entirety (previously it stopped at 2 or 3 letters).
- New option at config.yml (Options > Deliver activation items) to turn off the delivery of activation items for ALL VIPs at once, without having to edit file by file.
- Unlike /starvips turning items off, this option is reversible: the list of items for each vip remains in the file, and just return to true.
- The /starvips disconnectitems warning now shows this path before confirming, so that no one can delete the lists without having to.
- VipActivatedEvent event (com.starplugins.starvips.api.evento) for others plugins, triggered on every announced activation (darvip, key, store). /setarvip does not fire.
Correction: the product did not load on a server with a loader prior to 2.0.69.
Ad action bar appears again on servers 1.8.
Correction of the title and action bar of ads on servers 1.8.
Compatibility and stability fixes.
Compatibility and stability fixes.
Compatibility and stability fixes.
Compatibility and stability fixes.
Internal Java compatibility tweak 17.
- /setvip (setarvip) now no longer sends activations: no activation kit, announcement, party-vip, party or Discord. It's just the VIP adjustment, without redelivering what the player has already won.
- Correction at the GG Party: gg sent in a chat channel, like /g on global, did not count. Chat channel is usually command, and command does not go through the common chat event; Now these commands are also read, and their list is in GG.Comandos of chat
- Correction: the comparison was exact, so "Gg." and "GG!" they didn't count. Punctuation, spaces and capital letters are now ignored when checking the word
- The 'gg' party now accepts a list of words (Words: ['gg']) instead of a single one; still requires the exact message, but with several possible variations
- New GG Party system: when activating a VIP, the server has time to respond in the chat, and whoever responded takes the prize when the time is up
- The goal is a percentage of who is online at the time of activation, and not a fixed number, so it follows the server's movement. You can define a floor and a ceiling
- Each VIP decides whether to start the party, using field gg.ativar in their file. Duration, percentage and rewards can also be different per VIP; whatever is missing falls into the overall value
- The prize only comes out if the goal is reached, and each player counts once per party
- New placeholders: %starvips_gg_ativo%, %starvips_gg_total%, %starvips_gg_alvo%, %starvips_gg_faltam% and %starvips_gg_tempo%
- The system is turned off; call GG.Ativar on config.yml
Correction on shutdown: the uptime was saved too late and was lost (it appeared as 'task while disabled' or 'bank is not connected' in the console). Now it is recorded on the spot, before the bank closes.
- Correction: when shutting down or reloading plugin, event warnings from the previous execution continued to be active and attempted to write to an already closed database, filling the console with errors. With plugin loaded again, each player entry and exit was treated twice
- Correction: the save made at shutdown was scheduled and dropped after the bank closed, so what was in memory could be lost. Now it records instantly, before closing the connection
- With Opcoes.Permitir several assets connected, the head of /vip stops showing "Current VIP" and starts listing all VIPs in use, one per line, with the time of each one
- The same VIP appears only once in the list, even when the player has more than one record of him
- The layout is in menus.yml, in Principal.Itens.Perfil various, with the format of each line configurable. Servers with one VIP at a time continue to use the usual profile
- The import no longer brings the activation items from the previous plugin: they are usually configuration leftovers and would be returned to the player with each activation. Imported VIPs come with activation-items: false
- VIP file without the activation-items line receives the default "false" recorded, so the option is visible when editing
- New /starvips disconnectitems: writes activation-items: false to all vip files at once, for those who have already imported them before. Ask for confirmation, because the list of items for each VIP is lost
- Correction to /trocarvip: it only recognized the name of VIPs who were waiting their turn, so whoever had the VIP in use received "no VIP found" for a VIP that was on their own list. Now the search covers both cases, and the tab suggests them all
- The /vips line with the vip in use returns to closing the name color with &r: the bold vip no longer bleeds into the rest of the line, and the arrows between the columns are gone
- Anyone who already had mensagens.yml from a previous version receives this updated line alone on the next startup. The change only happens if the line has never been edited; any customization is maintained
- The /vips list has been redone: the vip's name is now closed with &r, so its color and bold no longer bleed into the rest of the line
- The status gained its own color: green for the VIP in use, yellow for the one waiting its turn and red for the one that has expired
- Expired VIP no longer shows "0s" of remaining time, and the arrows between the columns have disappeared
- /trocarvip accepts the name of the VIP, and not just the code: /trocarvip pattern works. The tab shows the names of the VIPs you can equip
- Activating a VIP you already have adds up the time you have, instead of leaving two identical records in the account. You can turn it off at Opcoes.Somar equal VIPs
- Activation items are now turned off by default: "activation-items: false" in the vip file. To call, exchange for a list of items
- Fixed COMMAND type savings, which never executed: the schedule used the list of plugins of Bukkit, where the products of StarPlugins did not appear, and the task was rejected.
- The history gained the "All" filter, which is now the initial one: before it opened by filtering only the VIPs equipped, and those who only had VIPs in other states saw the screen empty and thought they had lost them.
- The VIPs in the history are ordered by what is in use, then those waiting their turn and finally those who have expired
- Clicking on a VIP that is waiting its turn continues to change the VIP in use; clicking on what is already equipped now prompts this, instead of the click appearing to do nothing
- The head of /vip shows which VIP is in use, how long until it expires and how many VIPs are waiting, already expired and saved
- Correction: after the import, anyone who was online continued to see an empty /vips. The data of each connected player is read at login, and the import writes directly to the bank; now they are reread at the end
- The import no longer consults Mojang for each player on servers in offline mode. There were hundreds of network queries, tens of extra seconds and the console full of warnings "Couldn't find profile"
- Players that the server already knows continue to be resolved by their registration, which maintains correct behavior on proxy networks
- Serious correction: VIPs were recorded on the wrong account. The player's name was being read from the index column of the old bank, which keeps everything in lower case, and not from the register, which preserves capital letters. On servers in offline mode, the player's identifier comes from the name, so "so and so" and "so and so" become different accounts and the VIP would end up on one that no one uses
- New /starvips clear all: reset VIPs, activations and imported credits to redo the import from scratch. Ask for confirmation beforehand, and do not touch VIP files or rescue keys
- Serious correction in the import: it created a vip file for each player code, filling the vips/ folder with files with an identifier name. There were two causes combined: the equipped vip field stores a code, not the vip's name, and the reading swept all the bank's tables, including those of others plugins that share the same base
- The import starts to read only the plugin vip tables, and never creates a vip whose name looks like an identifier
- /starvips clean removes invalid files left over from a previous import, along with the records that pointed to them
- VIPs with a plus sign in the name, such as tiktoker+ and streamer+, work again: the file name changes the sign to an underscore and the vip no longer exists
- Fixed 'Duplicate entry' that dropped recordings during import: in MySQL the UPDATE responded '0 lines' when the values were already the same, and the next INSERT hit the primary key (credits, activations and player registration were lost)
- The connection now uses useAffectedRows and the INSERT that touches the key returns via UPDATE, instead of turning into an error in the console
- The import now also recreates the VIPs that only appear in the player's record (pending activation), such as tiktoker+ and streamer+, and not just those that had a support record
- When the database is down, the console starts showing a line explaining the reason, instead of repeating the entire error stack with each operation.
- The warning tells you what to do: check the config.yml Bank section and restart the server, since reloading plugin at run time does not reopen the connection
- The import stopped discarding VIPs that only existed in the bank: when a VIP was attached to players but no longer had a configuration file, registration was refused and the player lost what they purchased
- These VIPs automatically receive a file at plugins/StarVips/vips/, and the report lists which ones were created for you to review
- The recreated VIPs come without a group command and without a purpose kit: plugin has no way of guessing which permission to give, so this is left to the administrator to complete
- Correction: after reloading plugin at runtime, the commands from the previous version continued to respond and spoke to an already closed database, filling the console with errors. Now they go off the air and tell you to restart
- The /starvips reload reconnects the database when the config.yml points to another destination, so switching from SQLITE to MYSQL takes effect without restarting
- The "Import" section left config.yml: the database data from the previous plugin are read from config.yml, without having to repeat username and password here. Anyone who already had the section filled out will see it removed on its own on the next startup.
- The import now reads the real format of the previous system: each player's VIPs are in a separate table, referenced by code, and are now resolved
- VIP type, activation date, expiration date and duration are correct; Expired VIPs enter as expired and what was equipped remains equipped
- Saved keys, bonus keys and pending activations are also brought
- The redemption codes (/usarkey) from the previous system are imported together
- New /starvips import force: redo the import over data that came from a previous attempt
- The report notifies which VIPs exist in the old bank but do not yet have a file in plugins/StarVips/vips/
- Correction: /vip buttons respond again. The menu opened but no click performed the action
- The menu no longer depends on screen reading that changes behavior between server versions; Now the click is recognized by the menu itself
- The automatic update of the main menu no longer crashes when the player switches screens
- Revised configuration and help texts
- The import now resolves the real VIPs: each player's list only stores the UUID of each VIP, and the type and time are in another table, which is now read
- The vip equipped in the previous plugin returns equipped here, and those that were defeated enter as expired in the history
- Pending activations (prizes not yet collected) are also imported
- Running /starvips import again after a /starvips clear works again: previously the credit for the previous attempt caused the player to be skipped
- The imported credit is now defined instead of added, so repeating the import no longer doubles the balance
- /starvips inspect now lists all old database tables with row count