ScenariosPlus doubles as a plugin containing scenarios and a Java framework to allow custom advanced scenarios to be made from. It is unique from all other scenario manager plugins because it allows for custom scenarios to be developed and added onto the plugin with ease.
- /scenarios - The main scenario command! All you'll ever need. Just type this command and a GUI will pop up on your screen. All you need to do is just click on a scenario and it will toggle.
- Most other scenario managers have 1 problem - if two players have the manager open at the same time and one player toggles a scenario, it doesn't update both of their inventories! This plugin fixes that problem, and updates every player's manager at the same time.
- Support for integration with custom scenarios.
- Permission for /scenarios is scenariosplus.admin
- Apple Famine
- Aurophobia
- Bald Chicken
- Barebones
- Bats
- Bed Bomb
- Bench Blitz
- Beta Zombies
- Blast Mining
- Blood Diamonds
- Bombers
- Carrot Combo
- Chicken
- Coco
- Cripple
- Cutclean
- Depths
- Diamondless
- Double Or Nothing
- Eggs
- Enchanted Death
- Eternal Day
- #Bow
- Iron Drop
- Lights Out
- Mob Shots
- No Creepers
- No Fall
- No Rods
- No Sprint
- Not Shiny Enough
- One Heal
- Paranoia
- Popeye
- Switcheroo
- 3xArrows
- TripleOres
- Vegan Paranoia
Simply unzip the folder and place the generated jar files into your plugins folder and enjoy!
Firstly, you'll need to add the Scenarios Plus.jar to your External Archives.
Here is an example of the Main class of a scenario.
You declare a variable of type Scenario and then create an instance of a specific scenario with a display name (for the GUI and chat messages), whether it is enabled (true) or disabled (false), and the item that represents the scenario in the GUI.
The name of the item is automatically put in the GUI, so all you need to put is the item type and the amount (if needed).
It is possible to add extra data to the item like enchantments if you'd like, so that's why it's kept as an ItemStack not a Material.
Code:
public class Main extends JavaPlugin {
@Override
public void onEnable() {
Scenario cutclean = new Cutclean("Cutclean", false, new ItemStack(Material.GOLD_INGOT));
ScenarioManager.addScenario(cutclean);
}
}
Here is the example of a Cutclean scenario addon class that will go with the above code.
Make sure to make it extend Scenario and put the constructor in. You can leave the parameters the way they are, you set them in the Main class for neatness.
You simply put the events in how you want and they will work. The getStatus() method should not be needed as events are automatically removed and added when you disable and enable the scenario.
Code:
public class Cutclean extends Scenario implements Listener {
public Cutclean(String name, boolean status, ItemStack item) {
super(name, status, item);
}
@EventHandler
public void on(BlockBreakEvent e) {
if (getStatus()) {
//Do stuff
}
}
}
- More built-in scenarios!
By purchasing this plugin you agree that there will be no refunds given under any circumstances, and that disputing your payment with PayPal will result in your account being removed from the buyers list, which will remove any chance of downloading future updates.
By purchasing this plugin you also agree that I may take you off the buyers list for any reason, which includes if you distribute or sell my plugin without my permission.
To contact me please PM me here. Please don't put bugs into the review section or the discussion section, however I encourage you to put suggestions into the discussion section. I'm happy for you to put constructive criticism into the review section and the discussion section as long as it is constructive. I will try to reply to your messages and queries, but I don't have light speed support. Or do I?