mirror of
https://github.com/rockyhawk64/CommandPanels.git
synced 2025-11-18 07:14:17 +01:00
removePanel API method update
This commit is contained in:
parent
7b92f14342
commit
154b51d048
@ -48,9 +48,9 @@ public class CommandPanelsAPI {
|
||||
}
|
||||
|
||||
//remove panel from folder
|
||||
public void removePanel(Panel panel){
|
||||
public void removePanel(String panelName){
|
||||
for(Panel panels : ctx.plugin.panelList){
|
||||
if(panels.getName().equals(panel.getName())){
|
||||
if(panels.getName().equals(panelName)){
|
||||
if(panels.getFile().delete()){
|
||||
ctx.reloader.reloadPanelFiles();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user