This plugin is deprecated and will not be updated.
Introduction
I released a simple Plugin that allows you to easily create Twitter Codes with a click of a button, all the codes code is run in a module script. All you do is press the Insert Module button once you first launch the plugin. Then you insert the code name, after you do that you press submit and a script will open for you to insert your code.
code - The code that you want to be checked! lower - If the code is case sensitive, true not being case sensitive while false is case sensitive player - The player Object in the Game Service Players, this is to get the data for the code to that player.
This returns true or false true - The code was successfully run false - the code was used or doesn’t exist
Twitter codes now supports Dark Mode! That is just one more reason to use Twitter Codes, I understand what it feels like to get that painful bright screen while developing at night, now Twitter Code Plugin is one less thing to worry about!
Can you add the Abillity to Set it so we can limit the number of players who redeem this code and set it so itll return used code or doesnt exist if its used or doesnt exist. Thanks for making this Great plugin!
Great stuff! However, I feel like it is lacking a few key features such as:
Codes that automatically expire after a certain period of time
Limited uses of a code (once 5000 players redeem it its done)
Codes that can be reused every so often
Codes that can be reused only a certain number of times (different than #2 as that would be global, this would be per player)
Ability to generate random codes
Mixing and matching these settings
I think adding these features would greatly improve the flexibility of the system.
(You may already have planned to add some or all of these features in the future)
I agree with @Rocky28447 his idea is great, also maybe allow for external modules like require(id) so we can push codes there so that in the actual game the codes automatically update without server restarts or do what @xuefei123 said and incorporate a datastore system.
These are some great features. I definitely have some of these planned but I love the feedback and will be sure to look into a way to incorporating these.
lets say you had a game that you wanted players to have the ability to enter codes to receive in game rewards, You could just setup a simple module or use this, the twitter part of this is just to make it in a public space where codes can be visible.
imo i would prefer to make my own module but i can see how this would be useful