blob: d24d1336f42a1ff11cf08b175afba9f71cfe57a5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package net.benjidial.nswp.commands;
import net.benjidial.nswp.Database;
import org.bukkit.entity.Player;
import java.sql.SQLException;
public class DeleteWaypoint extends WaypointCommand {
public CompletionType getCompletionType() {
return CompletionType.Waypoint;
}
public boolean body(Player player, String[] args) throws SQLException {
if (args.length != 1)
return false;
Database.deleteWaypoint(player, args[0]);
return true;
}
}
|