开源软件名称(OpenSource Name):mcbut/MinecraftBut开源软件地址(OpenSource Url):https://github.com/mcbut/MinecraftBut开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):MinecraftBut
Join the Discord server for supportJoin the Discord (Note: You must be 13 years of age or older to use Discord) /r/MinecratBut (yes we know it's misspelt) Don't wanna set up the plugin yourself?Join my server DownloadDownload the latest version of the plugin It'll also be nice if you starred the project <3 (It pretty much means 'like' & it's free) VersionsMainly we support 1.8.x & 1.14.x servers. Other versions are untested and support will generally not be provided when using other versions. I recommend TacoSpigot or PaperSpigot, but as a bare minimum I recommend you use Spigot over Bukkit or CraftBukkit. Support <3We use yourkit for performance tuning of this project YourKit supports open source projects with innovative and intelligent tools for monitoring and profiling Java and .NET applications. YourKit is the creator of YourKit Java Profiler, YourKit .NET Profiler, YourKit YouMonitor Personally I would strongly recommend them if you're a developer :D Videos
(Want to be added to this list? Contact Heath or CyberFlame on Discord)Senerario (Yes, I know it's spelt wrong haha)
Command to view all credits and their YouTube channels:
How to install
Permissions
We only have one permission node for the root command Commands
Opens the GUI to enable and disable Senerarios
Help command
Learn ways that you can configure a Senerario
Configure a Senerario Note: senerarioId can be found in the lore of the item in the menu
Change the world that the plugin is running on, use case is just for Multiverse support Note: I will not support the plugin running on multiple worlds at once, as it's out of the scope of common need of the YouTubers, however I think it works in the Nether and The End. FeaturesFeature Requests Or request a feature on the Discord server DevelopersHow To set up the work environmentTools used
Download code
A folder called "MinecraftBut" is now created, so from now on you can cd to this folder and type
Add a SenerarioSimply extend Senerario, like so: public class DummyExample extends Senerario {
//This allows players to edit the field through the command
//'/mb s DummyExample someNumberToEdit 1' which sets the value to 1
@Optional
private int someNumberToEdit = 5;
public DummyExample(ButWorld butWorld) {
super("Dummy Name", butWorld, XMaterial.ANVIL.parseMaterial(), new String[] {
"This is a description of the senerario"
});
}
//called when Senerario is enabled
@Override
public void onStart() {
//If you have a repeating task, I guess using repeat(runnable, ticks)
//which auto cancels on disabl
this.repeat(() -> {}, 20l * 1);
}
//called when Senerario is disalbed
@Override
public void onFinish() {
}
//Registers when the Senerario is enabled
@EventHandler
public void onPlayerMove(PlayerMoveEvent e) {
Player player = e.getPlayer();
player.sendMessage("Hey " + someNumberToEdit);
}
} Then simply go to the games.bevs.minecraftbut.MinecraftButPlugin class // and add the following line in games.bevs.minecraftbut.MinecraftButPlugin
private void populateScenerarios(ButWorld butWorld)
{
...
this.scenerarioManager.registerSenerario(new DummyExample(butWorld));
} You can find more examples within games.bevs.minecraftbut.senerario.senerarios Looking for a specific release?ContributingIf you modify this plugin in any positive way please consider submitting your changes as a pull request. After all, this is open-source. If you find a bug please submit an issue describing the bug. DonateI don't expect anyone to really donate, but I have put time into this plugin so it would be dope if I made something back from it. Baked with love by Sprock (Heath) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论