[personal profile] fardell24

Digital and Interactive Games 2015 – Term 3, Session 2
Today:
・ Create your first plugin
・ Create a plugin with one simple command

Link file

spigot-1.8.7.jar

Totally open source

Plugin Tutorial
plugin.yml

 photo W18001_zpsrmufgdhm.png

public final class pluginTutorial extends JavaPlugin

import org.bukkitt.plugin.java.JavaPlugin;

import org.bukkit.Bukkit;

Bukkit.broadcastmessage(“PluginTutorial”);


Command Tutorial

My Command

getCommand(“myCommand”).setExecuter(new myCommandCommand());


Minecraft
|
onEnable() → main Plugin reference sent
|
Link new command
. Command
. Class
. . on Command() reference received
・ method
・ method


if (!sender instanceOf Player) {
run();
} else {
Player player = (Player) sender;
player.sendMessage(“You type my command”);
}
return true;


Player
・ location
・ inventory


Next week manipulating blocks

Week 3 manipulating timing


Create a plugin based on your .yml
Search Bukkit for similar plugins
・ read the docs
・ what needs to be improved



This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

May 2025

S M T W T F S
     1 23
45 6 78910
11 12 13 141516 17
1819 2021 22 23 24
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 24th, 2025 06:36 pm
Powered by Dreamwidth Studios