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 * To change this template, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package net.spoothie.chairs; package com.cnaude.chairs;
import org.bukkit.Material; import org.bukkit.Material;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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