Code refactoring.
Add website to plugin.yml
This commit is contained in:
parent
68c429a361
commit
0c36d138b9
@ -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;
|
||||
|
@ -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;
|
@ -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;
|
@ -1,4 +1,4 @@
|
||||
package net.spoothie.chairs;
|
||||
package com.cnaude.chairs;
|
||||
|
||||
import com.comphenix.protocol.ProtocolLibrary;
|
||||
import com.comphenix.protocol.ProtocolManager;
|
@ -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;
|
@ -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;
|
@ -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
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user