Minecraft BlockLock (coding liberary) mod 2026 download
logo
minecraft mod BlockLock (coding liberary)

BlockLock (coding liberary)

Game Version: CB 1.7.9-R0.2
Total Downloads: 911
Updated: Jan 24, 2015
Created: Jan 21, 2015
Download BlockLock (coding liberary)Download Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
PB 4.0 (Public Release) release 8.63 KB Jan 24, 2015 CB 1.7.9-R0.2 281 download BlockLock (coding liberary) PB 4.0 (Public Release) releaseDownload
PublicRelease3.0 release 8.04 KB Jan 22, 2015 CB 1.7.9-R0.2 142 download BlockLock (coding liberary) PublicRelease3.0 releaseDownload
Fix Release 2.0 release 7.32 KB Jan 22, 2015 CB 1.7.9-R0.2 119 download BlockLock (coding liberary) Fix Release 2.0 releaseDownload
PublicRelease2.0 release 7.31 KB Jan 22, 2015 CB 1.7.9-R0.2 124 download BlockLock (coding liberary) PublicRelease2.0 releaseDownload
PublicRelease1.5 release 7.05 KB Jan 22, 2015 CB 1.7.9-R0.2 132 download BlockLock (coding liberary) PublicRelease1.5 releaseDownload
PublicRelease1.0 release 6.13 KB Jan 21, 2015 CB 1.7.9-R0.2 113 download BlockLock (coding liberary) PublicRelease1.0 releaseDownload

Description

Share this:

This is NOT an plugin with commands!
This plugin/code is NOT for any server extras.
VERY IMPORTANT:
Only java coders can use this!

BlockLock.start(String "TheLockName", Player PlayerWhoOpensLock, Runnable WhatToDoOnSucces, Plugin PluginThisActionShouldAttachTo, Runnable RunWhenCodeIsWrongCanBeNULLtoo, Boolean IsTheLockQuitable);
Preview for a login lock:
private Plugin me;
public void onEnable(){
if(getConfig().get("Created") == null){
getConfig().set("Created", true);
saveConfig();
reloadConfig();
me = this;
}
Bukkit.getServer().getPluginManager().registerEvents(this, this);
}
@EventHandler
public void onJoinLock(PlayerJoinEvent e){
final Player ply = (Player) e.getPlayer();
Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable(){
@Override
public void run() {
BlockLock.start(ply, "Join_Login", new Runnable(){
@Override
public void run(){
ply.sendMessage("Welcome to ....'s network!");
}
}, me, new Runnable(){
@Override
public void run(){
ply.kickPlayer("Enter the correct code!");
}
}, false);
}
});
}

Events:

@EventHandler
public void onFail(LockDenyEvent e){
Player ply = (Player) e.getPlayer();
String LockName = e.lockName();
}
@EventHandler
public void onFinish(LockFinishEvent e){
Player ply = (Player) e.getPlayer();
String LockName = e.lockName();
}

Codes are saved to the config.
Hope this speedup your protection coding a bit!
Good luck, JMteam09

Milestones:
10 Downloads
50 Downloads
100 Downloads
250 Downloads
500 Downloads
1000 Downloads

Comments

Add a comment