fixed package protection for DiscoSheep
This commit is contained in:
parent
8533b007e3
commit
dd049a3011
@ -1,18 +1,18 @@
|
|||||||
package gibstick.bukkit.DiscoSheep;
|
package gibstick.bukkit.discosheep;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.lang.Math;
|
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
import org.bukkit.entity.Sheep;
|
import org.bukkit.entity.Sheep;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.EntityType;
|
import org.bukkit.entity.EntityType;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
import org.bukkit.plugin.Plugin;
|
||||||
|
|
||||||
public final class DiscoSheep extends JavaPlugin {
|
public final class DiscoSheep extends JavaPlugin {
|
||||||
|
|
||||||
private ArrayList<Sheep> sheepArray = new ArrayList<>();
|
private ArrayList<Sheep> sheepArray = new ArrayList<>();
|
||||||
private DiscoUpdater updater = new DiscoUpdater();
|
private DiscoUpdater updater = new DiscoUpdater(this);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
@ -65,33 +65,32 @@ public final class DiscoSheep extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void playSounds(){
|
public void playSounds() {
|
||||||
// TODO: generate list of players to send sounds to
|
// TODO: generate list of players to send sounds to
|
||||||
}
|
}
|
||||||
|
|
||||||
public void playSounds(Player player){
|
public void playSounds(Player player) {
|
||||||
//TODO: Add sound playing here
|
//TODO: Add sound playing here
|
||||||
}
|
}
|
||||||
|
|
||||||
// Called after discosheep is stopped
|
// Called after discosheep is stopped
|
||||||
public void cleanUp(){
|
void cleanUp() {
|
||||||
removeAllSheep();
|
removeAllSheep();
|
||||||
}
|
}
|
||||||
|
|
||||||
void scheduleUpdate(){
|
void scheduleUpdate() {
|
||||||
updater.runTaskLater(updater,frequency);
|
updater.runTaskLater((Plugin) updater, updater.frequency);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void startDisco(int frequency, int duration){
|
void startDisco(int frequency, int duration) {
|
||||||
updater.start(frequency, duration);
|
updater.start(frequency, duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void startDisco(){
|
void startDisco() {
|
||||||
this.startDisco();
|
this.startDisco();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void stopDisco(){
|
void stopDisco() {
|
||||||
updater.stop();
|
updater.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user