Class MCDS

java.lang.Object
de.adiko01.mcds.commands.MCDS
All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter

public class MCDS extends Object implements org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter
Klasse des Befehls /mcds
Version:
1.0
Author:
adiko01
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private Storage
    Der Storage
  • Constructor Summary

    Constructors
    Constructor
    Description
    MCDS(Storage store)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    copyResource(String resourcePath, Path targetPath)
    Kopiert die Recource in den Pluginordner
    private void
    getPermError(org.bukkit.command.CommandSender commandSender, String permission)
    Zeigt einen Fehler, dass eine Permission fehlt
    private void
    link(org.bukkit.command.CommandSender s, String Type)
    Generiert im Pluginordner die passenden Configurationsdatein für einen Dienst
    boolean
    onCommand(org.bukkit.command.CommandSender commandSender, org.bukkit.command.Command command, String s, String[] args)
     
    onTabComplete(org.bukkit.command.CommandSender commandSender, org.bukkit.command.Command command, String s, String[] args)
     
    private void
    replaceLine(String filePath, String oldLine, String newLine)
    Ersetzt eine Zeile in der übergebenen Datei

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • store

      private Storage store
      Der Storage
  • Constructor Details

    • MCDS

      public MCDS(Storage store)
  • Method Details

    • onCommand

      public boolean onCommand(org.bukkit.command.CommandSender commandSender, org.bukkit.command.Command command, String s, String[] args)
      Specified by:
      onCommand in interface org.bukkit.command.CommandExecutor
    • onTabComplete

      public List<String> onTabComplete(org.bukkit.command.CommandSender commandSender, org.bukkit.command.Command command, String s, String[] args)
      Specified by:
      onTabComplete in interface org.bukkit.command.TabCompleter
    • getPermError

      private void getPermError(org.bukkit.command.CommandSender commandSender, String permission)
      Zeigt einen Fehler, dass eine Permission fehlt
      Parameters:
      commandSender - Der Sender
      permission - Die fehlende permission
      Since:
      1.0
    • link

      private void link(org.bukkit.command.CommandSender s, String Type)
      Generiert im Pluginordner die passenden Configurationsdatein für einen Dienst
      Parameters:
      Type -
    • copyResource

      private void copyResource(String resourcePath, Path targetPath)
      Kopiert die Recource in den Pluginordner
      Parameters:
      resourcePath -
      targetPath -
      Since:
      1.0
    • replaceLine

      private void replaceLine(String filePath, String oldLine, String newLine)
      Ersetzt eine Zeile in der übergebenen Datei
      Parameters:
      filePath - Pfad als String
      oldLine - Alte Zeile
      newLine - Neue Zeile
      Since:
      1.0