Code refactoring.

Add website to plugin.yml
This commit is contained in:
cnaude 2013-06-23 13:16:47 -07:00
parent 68c429a361
commit 0c36d138b9
8 changed files with 15 additions and 9 deletions

View File

@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.spoothie.chairs;
package com.cnaude.chairs;
import org.bukkit.Material;

View File

@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.spoothie.chairs;
package com.cnaude.chairs;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;

View File

@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.spoothie.chairs;
package com.cnaude.chairs;
import java.util.ArrayList;
import net.minecraft.server.v1_5_R3.DataWatcher;

View File

@ -1,4 +1,4 @@
package net.spoothie.chairs;
package com.cnaude.chairs;
import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.ProtocolManager;

View File

@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.spoothie.chairs;
package com.cnaude.chairs;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;

View File

@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.spoothie.chairs;
package com.cnaude.chairs;
import java.io.*;
import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package net.spoothie.chairs;
package com.cnaude.chairs;
import java.util.ArrayList;
import org.bukkit.Bukkit;
@ -58,6 +58,11 @@ public class EventListener implements Listener {
delayedSitTask();
}
@EventHandler
public void onPlayerTeleport(PlayerTeleportEvent event) {
delayedSitTask();
}
private void delayedSitTask() {
plugin.getServer().getScheduler().runTaskLater(plugin, new Runnable() {
@Override

View File

@ -1,10 +1,11 @@
name: Chairs
version: 2.1.0
version: 2.1.2
description: Let players sit on blocks.
website: http://dev.bukkit.org/bukkit-plugins/chairsreloaded/
authors:
- spoothie
- cnaude
main: net.spoothie.chairs.Chairs
main: com.cnaude.chairs.Chairs
softdepend:
- ProtocolLib
commands: